home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / git-4.3 / git-4 / git-4.3.11 / configure < prev    next >
Encoding:
Text File  |  1996-06-06  |  104.5 KB  |  4,055 lines

  1. #! /bin/sh
  2.  
  3. # From configure.in Revision: 4.3.11 
  4. # Guess values for system-dependent variables and create Makefiles.
  5. # Generated automatically using autoconf version 2.10 
  6. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  7. #
  8. # This configure script is free software; the Free Software Foundation
  9. # gives unlimited permission to copy, distribute and modify it.
  10.  
  11. # Defaults:
  12. ac_help=
  13. ac_default_prefix=/usr/local
  14. # Any additions from configure.in:
  15. ac_help="$ac_help
  16.   --with-terminfo         use terminfo insted of termcap"
  17. ac_help="$ac_help
  18.   --enable-gcc-warnings   more gcc warnings for debugging purposes"
  19.  
  20. # Initialize some variables set by options.
  21. # The variables have the same names as the options, with
  22. # dashes changed to underlines.
  23. build=NONE
  24. cache_file=./config.cache
  25. exec_prefix=NONE
  26. host=NONE
  27. no_create=
  28. nonopt=NONE
  29. no_recursion=
  30. prefix=NONE
  31. program_prefix=NONE
  32. program_suffix=NONE
  33. program_transform_name=s,x,x,
  34. silent=
  35. site=
  36. srcdir=
  37. target=NONE
  38. verbose=
  39. x_includes=NONE
  40. x_libraries=NONE
  41. bindir='${exec_prefix}/bin'
  42. sbindir='${exec_prefix}/sbin'
  43. libexecdir='${exec_prefix}/libexec'
  44. datadir='${prefix}/share'
  45. sysconfdir='${prefix}/etc'
  46. sharedstatedir='${prefix}/com'
  47. localstatedir='${prefix}/var'
  48. libdir='${exec_prefix}/lib'
  49. includedir='${prefix}/include'
  50. oldincludedir='/usr/include'
  51. infodir='${prefix}/info'
  52. mandir='${prefix}/man'
  53.  
  54. # Initialize some other variables.
  55. subdirs=
  56. MFLAGS= MAKEFLAGS=
  57.  
  58. ac_prev=
  59. for ac_option
  60. do
  61.  
  62.   # If the previous option needs an argument, assign it.
  63.   if test -n "$ac_prev"; then
  64.     eval "$ac_prev=\$ac_option"
  65.     ac_prev=
  66.     continue
  67.   fi
  68.  
  69.   case "$ac_option" in
  70.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  71.   *) ac_optarg= ;;
  72.   esac
  73.  
  74.   # Accept the important Cygnus configure options, so we can diagnose typos.
  75.  
  76.   case "$ac_option" in
  77.  
  78.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  79.     ac_prev=bindir ;;
  80.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  81.     bindir="$ac_optarg" ;;
  82.  
  83.   -build | --build | --buil | --bui | --bu)
  84.     ac_prev=build ;;
  85.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  86.     build="$ac_optarg" ;;
  87.  
  88.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  89.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  90.     ac_prev=cache_file ;;
  91.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  92.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  93.     cache_file="$ac_optarg" ;;
  94.  
  95.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  96.     ac_prev=datadir ;;
  97.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  98.   | --da=*)
  99.     datadir="$ac_optarg" ;;
  100.  
  101.   -disable-* | --disable-*)
  102.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  103.     # Reject names that are not valid shell variable names.
  104.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  105.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  106.     fi
  107.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  108.     eval "enable_${ac_feature}=no" ;;
  109.  
  110.   -enable-* | --enable-*)
  111.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  112.     # Reject names that are not valid shell variable names.
  113.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  114.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  115.     fi
  116.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  117.     case "$ac_option" in
  118.       *=*) ;;
  119.       *) ac_optarg=yes ;;
  120.     esac
  121.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  122.  
  123.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  124.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  125.   | --exec | --exe | --ex)
  126.     ac_prev=exec_prefix ;;
  127.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  128.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  129.   | --exec=* | --exe=* | --ex=*)
  130.     exec_prefix="$ac_optarg" ;;
  131.  
  132.   -gas | --gas | --ga | --g)
  133.     # Obsolete; use --with-gas.
  134.     with_gas=yes ;;
  135.  
  136.   -help | --help | --hel | --he)
  137.     # Omit some internal or obsolete options to make the list less imposing.
  138.     # This message is too long to be a string in the A/UX 3.1 sh.
  139.     cat << EOF
  140. Usage: configure [options] [host]
  141. Options: [defaults in brackets after descriptions]
  142. Configuration:
  143.   --cache-file=FILE       cache test results in FILE
  144.   --help                  print this message
  145.   --no-create             do not create output files
  146.   --quiet, --silent       do not print \`checking...' messages
  147.   --version               print the version of autoconf that created configure
  148. Directory and file names:
  149.   --prefix=PREFIX         install architecture-independent files in PREFIX
  150.                           [$ac_default_prefix]
  151.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  152.                           [same as prefix]
  153.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  154.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  155.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  156.   --datadir=DIR           read-only architecture-independent data in DIR
  157.                           [PREFIX/share]
  158.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  159.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  160.                           [PREFIX/com]
  161.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  162.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  163.   --includedir=DIR        C header files in DIR [PREFIX/include]
  164.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  165.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  166.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  167.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  168.   --program-prefix=PREFIX prepend PREFIX to installed program names
  169.   --program-suffix=SUFFIX append SUFFIX to installed program names
  170.   --program-transform-name=PROGRAM
  171.                           run sed PROGRAM on installed program names
  172. EOF
  173.     cat << EOF
  174. Host type:
  175.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  176.   --host=HOST             configure for HOST [guessed]
  177.   --target=TARGET         configure for TARGET [TARGET=HOST]
  178. Features and packages:
  179.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  180.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  181.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  182.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  183.   --x-includes=DIR        X include files are in DIR
  184.   --x-libraries=DIR       X library files are in DIR
  185. EOF
  186.     if test -n "$ac_help"; then
  187.       echo "--enable and --with options recognized:$ac_help"
  188.     fi
  189.     exit 0 ;;
  190.  
  191.   -host | --host | --hos | --ho)
  192.     ac_prev=host ;;
  193.   -host=* | --host=* | --hos=* | --ho=*)
  194.     host="$ac_optarg" ;;
  195.  
  196.   -includedir | --includedir | --includedi | --included | --include \
  197.   | --includ | --inclu | --incl | --inc)
  198.     ac_prev=includedir ;;
  199.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  200.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  201.     includedir="$ac_optarg" ;;
  202.  
  203.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  204.     ac_prev=infodir ;;
  205.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  206.     infodir="$ac_optarg" ;;
  207.  
  208.   -libdir | --libdir | --libdi | --libd)
  209.     ac_prev=libdir ;;
  210.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  211.     libdir="$ac_optarg" ;;
  212.  
  213.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  214.   | --libexe | --libex | --libe)
  215.     ac_prev=libexecdir ;;
  216.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  217.   | --libexe=* | --libex=* | --libe=*)
  218.     libexecdir="$ac_optarg" ;;
  219.  
  220.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  221.   | --localstate | --localstat | --localsta | --localst \
  222.   | --locals | --local | --loca | --loc | --lo)
  223.     ac_prev=localstatedir ;;
  224.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  225.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  226.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  227.     localstatedir="$ac_optarg" ;;
  228.  
  229.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  230.     ac_prev=mandir ;;
  231.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  232.     mandir="$ac_optarg" ;;
  233.  
  234.   -nfp | --nfp | --nf)
  235.     # Obsolete; use --without-fp.
  236.     with_fp=no ;;
  237.  
  238.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  239.   | --no-cr | --no-c)
  240.     no_create=yes ;;
  241.  
  242.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  243.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  244.     no_recursion=yes ;;
  245.  
  246.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  247.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  248.   | --oldin | --oldi | --old | --ol | --o)
  249.     ac_prev=oldincludedir ;;
  250.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  251.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  252.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  253.     oldincludedir="$ac_optarg" ;;
  254.  
  255.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  256.     ac_prev=prefix ;;
  257.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  258.     prefix="$ac_optarg" ;;
  259.  
  260.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  261.   | --program-pre | --program-pr | --program-p)
  262.     ac_prev=program_prefix ;;
  263.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  264.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  265.     program_prefix="$ac_optarg" ;;
  266.  
  267.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  268.   | --program-suf | --program-su | --program-s)
  269.     ac_prev=program_suffix ;;
  270.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  271.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  272.     program_suffix="$ac_optarg" ;;
  273.  
  274.   -program-transform-name | --program-transform-name \
  275.   | --program-transform-nam | --program-transform-na \
  276.   | --program-transform-n | --program-transform- \
  277.   | --program-transform | --program-transfor \
  278.   | --program-transfo | --program-transf \
  279.   | --program-trans | --program-tran \
  280.   | --progr-tra | --program-tr | --program-t)
  281.     ac_prev=program_transform_name ;;
  282.   -program-transform-name=* | --program-transform-name=* \
  283.   | --program-transform-nam=* | --program-transform-na=* \
  284.   | --program-transform-n=* | --program-transform-=* \
  285.   | --program-transform=* | --program-transfor=* \
  286.   | --program-transfo=* | --program-transf=* \
  287.   | --program-trans=* | --program-tran=* \
  288.   | --progr-tra=* | --program-tr=* | --program-t=*)
  289.     program_transform_name="$ac_optarg" ;;
  290.  
  291.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  292.   | -silent | --silent | --silen | --sile | --sil)
  293.     silent=yes ;;
  294.  
  295.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  296.     ac_prev=sbindir ;;
  297.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  298.   | --sbi=* | --sb=*)
  299.     sbindir="$ac_optarg" ;;
  300.  
  301.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  302.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  303.   | --sharedst | --shareds | --shared | --share | --shar \
  304.   | --sha | --sh)
  305.     ac_prev=sharedstatedir ;;
  306.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  307.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  308.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  309.   | --sha=* | --sh=*)
  310.     sharedstatedir="$ac_optarg" ;;
  311.  
  312.   -site | --site | --sit)
  313.     ac_prev=site ;;
  314.   -site=* | --site=* | --sit=*)
  315.     site="$ac_optarg" ;;
  316.  
  317.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  318.     ac_prev=srcdir ;;
  319.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  320.     srcdir="$ac_optarg" ;;
  321.  
  322.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  323.   | --syscon | --sysco | --sysc | --sys | --sy)
  324.     ac_prev=sysconfdir ;;
  325.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  326.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  327.     sysconfdir="$ac_optarg" ;;
  328.  
  329.   -target | --target | --targe | --targ | --tar | --ta | --t)
  330.     ac_prev=target ;;
  331.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  332.     target="$ac_optarg" ;;
  333.  
  334.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  335.     verbose=yes ;;
  336.  
  337.   -version | --version | --versio | --versi | --vers)
  338.     echo "configure generated by autoconf version 2.10"
  339.     exit 0 ;;
  340.  
  341.   -with-* | --with-*)
  342.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  343.     # Reject names that are not valid shell variable names.
  344.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  345.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  346.     fi
  347.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  348.     case "$ac_option" in
  349.       *=*) ;;
  350.       *) ac_optarg=yes ;;
  351.     esac
  352.     eval "with_${ac_package}='$ac_optarg'" ;;
  353.  
  354.   -without-* | --without-*)
  355.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  356.     # Reject names that are not valid shell variable names.
  357.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  358.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  359.     fi
  360.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  361.     eval "with_${ac_package}=no" ;;
  362.  
  363.   --x)
  364.     # Obsolete; use --with-x.
  365.     with_x=yes ;;
  366.  
  367.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  368.   | --x-incl | --x-inc | --x-in | --x-i)
  369.     ac_prev=x_includes ;;
  370.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  371.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  372.     x_includes="$ac_optarg" ;;
  373.  
  374.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  375.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  376.     ac_prev=x_libraries ;;
  377.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  378.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  379.     x_libraries="$ac_optarg" ;;
  380.  
  381.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  382.     ;;
  383.  
  384.   *)
  385.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  386.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  387.     fi
  388.     if test "x$nonopt" != xNONE; then
  389.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  390.     fi
  391.     nonopt="$ac_option"
  392.     ;;
  393.  
  394.   esac
  395. done
  396.  
  397. if test -n "$ac_prev"; then
  398.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  399. fi
  400.  
  401. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  402.  
  403. # File descriptor usage:
  404. # 0 standard input
  405. # 1 file creation
  406. # 2 errors and warnings
  407. # 3 some systems may open it to /dev/tty
  408. # 4 used on the Kubota Titan
  409. # 6 checking for... messages and results
  410. # 5 compiler messages saved in config.log
  411. if test "$silent" = yes; then
  412.   exec 6>/dev/null
  413. else
  414.   exec 6>&1
  415. fi
  416. exec 5>./config.log
  417.  
  418. echo "\
  419. This file contains any messages produced by compilers while
  420. running configure, to aid debugging if configure makes a mistake.
  421. " 1>&5
  422.  
  423. # Strip out --no-create and --no-recursion so they do not pile up.
  424. # Also quote any args containing shell metacharacters.
  425. ac_configure_args=
  426. for ac_arg
  427. do
  428.   case "$ac_arg" in
  429.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  430.   | --no-cr | --no-c) ;;
  431.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  432.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  433.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  434.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  435.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  436.   esac
  437. done
  438.  
  439. # NLS nuisances.
  440. # Only set LANG and LC_ALL to C if already set.
  441. # These must not be set unconditionally because not all systems understand
  442. # e.g. LANG=C (notably SCO).
  443. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  444. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  445.  
  446. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  447. rm -rf conftest* confdefs.h
  448. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  449. echo > confdefs.h
  450.  
  451. # A filename unique to this package, relative to the directory that
  452. # configure is in, which we can look for to find out if srcdir is correct.
  453. ac_unique_file=src/git.c
  454.  
  455. # Find the source files, if location was not specified.
  456. if test -z "$srcdir"; then
  457.   ac_srcdir_defaulted=yes
  458.   # Try the directory containing this script, then its parent.
  459.   ac_prog=$0
  460.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  461.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  462.   srcdir=$ac_confdir
  463.   if test ! -r $srcdir/$ac_unique_file; then
  464.     srcdir=..
  465.   fi
  466. else
  467.   ac_srcdir_defaulted=no
  468. fi
  469. if test ! -r $srcdir/$ac_unique_file; then
  470.   if test "$ac_srcdir_defaulted" = yes; then
  471.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  472.   else
  473.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  474.   fi
  475. fi
  476. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  477.  
  478. # Prefer explicitly selected file to automatically selected ones.
  479. if test -z "$CONFIG_SITE"; then
  480.   if test "x$prefix" != xNONE; then
  481.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  482.   else
  483.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  484.   fi
  485. fi
  486. for ac_site_file in $CONFIG_SITE; do
  487.   if test -r "$ac_site_file"; then
  488.     echo "loading site script $ac_site_file"
  489.     . "$ac_site_file"
  490.   fi
  491. done
  492.  
  493. if test -r "$cache_file"; then
  494.   echo "loading cache $cache_file"
  495.   . $cache_file
  496. else
  497.   echo "creating cache $cache_file"
  498.   > $cache_file
  499. fi
  500.  
  501. ac_ext=c
  502. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  503. ac_cpp='$CPP $CPPFLAGS'
  504. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  505. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  506.  
  507. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  508.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  509.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  510.     ac_n= ac_c='
  511. ' ac_t='    '
  512.   else
  513.     ac_n=-n ac_c= ac_t=
  514.   fi
  515. else
  516.   ac_n= ac_c='\c' ac_t=
  517. fi
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525. PRODUCT="GNU Interactive Tools"
  526. VERSION="4.3.11"
  527.  
  528.  
  529.  
  530. echo
  531. echo
  532. echo "                ############################################"
  533. echo "                # Configuring GNU Interactive Tools 4.3.11 #"
  534. echo "                ############################################"
  535. echo
  536. echo
  537. echo "     ******************************************************************"
  538. echo "     *     WARNING: some old losing shells fail to run './configure', *"
  539. echo "     * trying to execute configure itself.  You can prevent  this  by *"
  540. echo "     * running 'sh configure'.  The configure script will be executed *"
  541. echo "     * by /bin/sh.                                                    *"
  542. echo "     ******************************************************************"
  543. echo
  544. echo
  545. echo "     ******************************************************************"
  546. echo "     *     If you find bugs in this software or in  the  installation *"
  547. echo "     * procedure please send a description to tudorh@pub.ro.          *"
  548. echo "     ******************************************************************"
  549. echo
  550. echo
  551.  
  552. echo "5 seconds delay..."
  553. sleep 5
  554. echo
  555.  
  556.  
  557.  
  558. ac_aux_dir=
  559. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  560.   if test -f $ac_dir/install-sh; then
  561.     ac_aux_dir=$ac_dir
  562.     ac_install_sh="$ac_aux_dir/install-sh -c"
  563.     break
  564.   elif test -f $ac_dir/install.sh; then
  565.     ac_aux_dir=$ac_dir
  566.     ac_install_sh="$ac_aux_dir/install.sh -c"
  567.     break
  568.   fi
  569. done
  570. if test -z "$ac_aux_dir"; then
  571.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  572. fi
  573. ac_config_guess=$ac_aux_dir/config.guess
  574. ac_config_sub=$ac_aux_dir/config.sub
  575. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  576.  
  577. # Find a good install program.  We prefer a C program (faster),
  578. # so one script is as good as another.  But avoid the broken or
  579. # incompatible versions:
  580. # SysV /etc/install, /usr/sbin/install
  581. # SunOS /usr/etc/install
  582. # IRIX /sbin/install
  583. # AIX /bin/install
  584. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  585. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  586. # ./install, which can be erroneously created by make from ./install.sh.
  587. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  588. if test -z "$INSTALL"; then
  589. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  590.   echo $ac_n "(cached) $ac_c" 1>&6
  591. else
  592.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  593.   for ac_dir in $PATH; do
  594.     # Account for people who put trailing slashes in PATH elements.
  595.     case "$ac_dir/" in
  596.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  597.     *)
  598.       # OSF1 and SCO ODT 3.0 have their own names for install.
  599.       for ac_prog in ginstall installbsd scoinst install; do
  600.         if test -f $ac_dir/$ac_prog; then
  601.       if test $ac_prog = install &&
  602.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  603.         # AIX install.  It has an incompatible calling convention.
  604.         # OSF/1 installbsd also uses dspmsg, but is usable.
  605.         :
  606.       else
  607.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  608.         break 2
  609.       fi
  610.     fi
  611.       done
  612.       ;;
  613.     esac
  614.   done
  615.   IFS="$ac_save_ifs"
  616.  
  617. fi
  618.   if test "${ac_cv_path_install+set}" = set; then
  619.     INSTALL="$ac_cv_path_install"
  620.   else
  621.     # As a last resort, use the slow shell script.  We don't cache a
  622.     # path for INSTALL within a source directory, because that will
  623.     # break other packages using the cache if that directory is
  624.     # removed, or if the path is relative.
  625.     INSTALL="$ac_install_sh"
  626.   fi
  627. fi
  628. echo "$ac_t""$INSTALL" 1>&6
  629.  
  630. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  631. # It thinks the first close brace ends the variable substitution.
  632. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  633.  
  634. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  635.  
  636.  
  637.  
  638.  
  639. # Make sure we can run config.sub.
  640. if $ac_config_sub sun4 >/dev/null 2>&1; then :
  641. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  642. fi
  643.  
  644. echo $ac_n "checking host system type""... $ac_c" 1>&6
  645.  
  646. host_alias=$host
  647. case "$host_alias" in
  648. NONE)
  649.   case $nonopt in
  650.   NONE)
  651.     if host_alias=`$ac_config_guess`; then :
  652.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  653.     fi ;;
  654.   *) host_alias=$nonopt ;;
  655.   esac ;;
  656. esac
  657.  
  658. host=`$ac_config_sub $host_alias`
  659. host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  660. host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  661. host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  662. echo "$ac_t""$host" 1>&6
  663.  
  664.  
  665. HOST=$host
  666.  
  667.  
  668.  
  669. if test "$host_os" = "linux"; then
  670.     cat >> confdefs.h <<\EOF
  671. #define HAVE_LINUX 1
  672. EOF
  673.  
  674. else
  675.     if test `echo "$host_os" | cut -c1-4` = "hpux"; then
  676.     cat >> confdefs.h <<\EOF
  677. #define HAVE_HPUX 1
  678. EOF
  679.  
  680.     fi
  681. fi
  682.  
  683.  
  684.  
  685. # Extract the first word of "gcc", so it can be a program name with args.
  686. set dummy gcc; ac_word=$2
  687. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  688. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  689.   echo $ac_n "(cached) $ac_c" 1>&6
  690. else
  691.   if test -n "$CC"; then
  692.   ac_cv_prog_CC="$CC" # Let the user override the test.
  693. else
  694.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  695.   for ac_dir in $PATH; do
  696.     test -z "$ac_dir" && ac_dir=.
  697.     if test -f $ac_dir/$ac_word; then
  698.       ac_cv_prog_CC="gcc"
  699.       break
  700.     fi
  701.   done
  702.   IFS="$ac_save_ifs"
  703. fi
  704. fi
  705. CC="$ac_cv_prog_CC"
  706. if test -n "$CC"; then
  707.   echo "$ac_t""$CC" 1>&6
  708. else
  709.   echo "$ac_t""no" 1>&6
  710. fi
  711.  
  712. if test -z "$CC"; then
  713.   # Extract the first word of "cc", so it can be a program name with args.
  714. set dummy cc; ac_word=$2
  715. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  716. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  717.   echo $ac_n "(cached) $ac_c" 1>&6
  718. else
  719.   if test -n "$CC"; then
  720.   ac_cv_prog_CC="$CC" # Let the user override the test.
  721. else
  722.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  723.   ac_prog_rejected=no
  724.   for ac_dir in $PATH; do
  725.     test -z "$ac_dir" && ac_dir=.
  726.     if test -f $ac_dir/$ac_word; then
  727.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  728.         ac_prog_rejected=yes
  729.     continue
  730.       fi
  731.       ac_cv_prog_CC="cc"
  732.       break
  733.     fi
  734.   done
  735.   IFS="$ac_save_ifs"
  736. if test $ac_prog_rejected = yes; then
  737.   # We found a bogon in the path, so make sure we never use it.
  738.   set dummy $ac_cv_prog_CC
  739.   shift
  740.   if test $# -gt 0; then
  741.     # We chose a different compiler from the bogus one.
  742.     # However, it has the same basename, so the bogon will be chosen
  743.     # first if we set CC to just the basename; use the full file name.
  744.     shift
  745.     set dummy "$ac_dir/$ac_word" "$@"
  746.     shift
  747.     ac_cv_prog_CC="$@"
  748.   fi
  749. fi
  750. fi
  751. fi
  752. CC="$ac_cv_prog_CC"
  753. if test -n "$CC"; then
  754.   echo "$ac_t""$CC" 1>&6
  755. else
  756.   echo "$ac_t""no" 1>&6
  757. fi
  758.  
  759.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  760. fi
  761.  
  762. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  763. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  764.   echo $ac_n "(cached) $ac_c" 1>&6
  765. else
  766.   cat > conftest.c <<EOF
  767. #ifdef __GNUC__
  768.   yes;
  769. #endif
  770. EOF
  771. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  772.   ac_cv_prog_gcc=yes
  773. else
  774.   ac_cv_prog_gcc=no
  775. fi
  776. fi
  777.  
  778. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  779. if test $ac_cv_prog_gcc = yes; then
  780.   GCC=yes
  781.   if test "${CFLAGS+set}" != set; then
  782.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  783. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  784.   echo $ac_n "(cached) $ac_c" 1>&6
  785. else
  786.   echo 'void f(){}' > conftest.c
  787. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  788.   ac_cv_prog_gcc_g=yes
  789. else
  790.   ac_cv_prog_gcc_g=no
  791. fi
  792. rm -f conftest*
  793.  
  794. fi
  795.  
  796. echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  797.     if test $ac_cv_prog_gcc_g = yes; then
  798.       CFLAGS="-g -O"
  799.     else
  800.       CFLAGS="-O"
  801.     fi
  802.   fi
  803. else
  804.   GCC=
  805.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  806. fi
  807.  
  808.  
  809.  
  810.  
  811. # Check whether --with-terminfo or --without-terminfo was given.
  812. if test "${with_terminfo+set}" = set; then
  813.   withval="$with_terminfo"
  814.   TERMINFO="$withval"
  815. else
  816.   TERMINFO="no"
  817. fi
  818.  
  819.  
  820. # Check whether --enable-gcc-warnings or --disable-gcc-warnings was given.
  821. if test "${enable_gcc_warnings+set}" = set; then
  822.   enableval="$enable_gcc_warnings"
  823.   GCC_WARNINGS="$enableval"
  824. else
  825.   GCC_WARNINGS="no"
  826. fi
  827.  
  828.  
  829.  
  830. if test "$CC" = "gcc"; then
  831.     cat >> confdefs.h <<\EOF
  832. #define HAVE_GCC 1
  833. EOF
  834.  
  835.     CFLAGS="$CFLAGS -Wall";
  836.     if test "$GCC_WARNINGS" = "yes"; then
  837.     CFLAGS="$CFLAGS -Waggregate-return -Wbad-function-cast -Wcast-align\
  838.             -Wtraditional -Winline -Wpointer-arith -Wcast-qual";
  839.     fi
  840. fi
  841.  
  842.  
  843.  
  844. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  845. # On Suns, sometimes $CPP names a directory.
  846. if test -n "$CPP" && test -d "$CPP"; then
  847.   CPP=
  848. fi
  849. if test -z "$CPP"; then
  850. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  851.   echo $ac_n "(cached) $ac_c" 1>&6
  852. else
  853.     # This must be in double quotes, not single quotes, because CPP may get
  854.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  855.   CPP="${CC-cc} -E"
  856.   # On the NeXT, cc -E runs the code through the compiler's parser,
  857.   # not just through cpp.
  858.   cat > conftest.$ac_ext <<EOF
  859. #line 860 "configure"
  860. #include "confdefs.h"
  861. #include <assert.h>
  862. Syntax Error
  863. EOF
  864. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  865. { (eval echo configure:866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  866. ac_err=`grep -v '^ *+' conftest.out`
  867. if test -z "$ac_err"; then
  868.   :
  869. else
  870.   echo "$ac_err" >&5
  871.   rm -rf conftest*
  872.   CPP="${CC-cc} -E -traditional-cpp"
  873.   cat > conftest.$ac_ext <<EOF
  874. #line 875 "configure"
  875. #include "confdefs.h"
  876. #include <assert.h>
  877. Syntax Error
  878. EOF
  879. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  880. { (eval echo configure:881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  881. ac_err=`grep -v '^ *+' conftest.out`
  882. if test -z "$ac_err"; then
  883.   :
  884. else
  885.   echo "$ac_err" >&5
  886.   rm -rf conftest*
  887.   CPP=/lib/cpp
  888. fi
  889. rm -f conftest*
  890. fi
  891. rm -f conftest*
  892.   ac_cv_prog_CPP="$CPP"
  893. fi
  894.   CPP="$ac_cv_prog_CPP"
  895. else
  896.   ac_cv_prog_CPP="$CPP"
  897. fi
  898. echo "$ac_t""$CPP" 1>&6
  899.  
  900. echo $ac_n "checking for AIX""... $ac_c" 1>&6
  901. cat > conftest.$ac_ext <<EOF
  902. #line 903 "configure"
  903. #include "confdefs.h"
  904. #ifdef _AIX
  905.   yes
  906. #endif
  907.  
  908. EOF
  909. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  910.   egrep "yes" >/dev/null 2>&1; then
  911.   rm -rf conftest*
  912.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  913. #define _ALL_SOURCE 1
  914. EOF
  915.  
  916. else
  917.   rm -rf conftest*
  918.   echo "$ac_t""no" 1>&6
  919. fi
  920. rm -f conftest*
  921.  
  922.  
  923. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  924. if test -d /etc/conf/kconfig.d &&
  925.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  926. then
  927.   echo "$ac_t""yes" 1>&6
  928.   ISC=yes # If later tests want to check for ISC.
  929.   cat >> confdefs.h <<\EOF
  930. #define _POSIX_SOURCE 1
  931. EOF
  932.  
  933.   if test "$GCC" = yes; then
  934.     CC="$CC -posix"
  935.   else
  936.     CC="$CC -Xp"
  937.   fi
  938. else
  939.   echo "$ac_t""no" 1>&6
  940.   ISC=
  941. fi
  942.  
  943. ac_safe=`echo "minix/config.h" | tr './\055' '___'`
  944. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  945. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  946.   echo $ac_n "(cached) $ac_c" 1>&6
  947. else
  948.   cat > conftest.$ac_ext <<EOF
  949. #line 950 "configure"
  950. #include "confdefs.h"
  951. #include <minix/config.h>
  952. EOF
  953. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  954. { (eval echo configure:955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  955. ac_err=`grep -v '^ *+' conftest.out`
  956. if test -z "$ac_err"; then
  957.   rm -rf conftest*
  958.   eval "ac_cv_header_$ac_safe=yes"
  959. else
  960.   echo "$ac_err" >&5
  961.   rm -rf conftest*
  962.   eval "ac_cv_header_$ac_safe=no"
  963. fi
  964. rm -f conftest*
  965. fi
  966. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  967.   echo "$ac_t""yes" 1>&6
  968.   MINIX=yes
  969. else
  970.   echo "$ac_t""no" 1>&6
  971. MINIX=
  972. fi
  973.  
  974. if test "$MINIX" = yes; then
  975.   cat >> confdefs.h <<\EOF
  976. #define _POSIX_SOURCE 1
  977. EOF
  978.  
  979.   cat >> confdefs.h <<\EOF
  980. #define _POSIX_1_SOURCE 2
  981. EOF
  982.  
  983.   cat >> confdefs.h <<\EOF
  984. #define _MINIX 1
  985. EOF
  986.  
  987. fi
  988.  
  989. echo $ac_n "checking for -lsun""... $ac_c" 1>&6
  990. ac_lib_var=`echo sun'_'getpwnam | tr './+\055' '__p_'`
  991. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  992.   echo $ac_n "(cached) $ac_c" 1>&6
  993. else
  994.   ac_save_LIBS="$LIBS"
  995. LIBS="-lsun  $LIBS"
  996. cat > conftest.$ac_ext <<EOF
  997. #line 998 "configure"
  998. #include "confdefs.h"
  999. /* Override any gcc2 internal prototype to avoid an error.  */
  1000. /* We use char because int might match the return type of a gcc2
  1001.     builtin and then its argument prototype would still apply.  */
  1002. char getpwnam();
  1003.  
  1004. int main() { return 0; }
  1005. int t() {
  1006. getpwnam()
  1007. ; return 0; }
  1008. EOF
  1009. if { (eval echo configure:1010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1010.   rm -rf conftest*
  1011.   eval "ac_cv_lib_$ac_lib_var=yes"
  1012. else
  1013.   rm -rf conftest*
  1014.   eval "ac_cv_lib_$ac_lib_var=no"
  1015. fi
  1016. rm -f conftest*
  1017. LIBS="$ac_save_LIBS"
  1018.  
  1019. fi
  1020. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1021.   echo "$ac_t""yes" 1>&6
  1022.     ac_tr_lib=HAVE_LIB`echo sun | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1023.   cat >> confdefs.h <<EOF
  1024. #define $ac_tr_lib 1
  1025. EOF
  1026.  
  1027.   LIBS="-lsun $LIBS"
  1028.  
  1029. else
  1030.   echo "$ac_t""no" 1>&6
  1031. fi
  1032.  
  1033.  
  1034.  
  1035.  
  1036. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  1037. # On Suns, sometimes $CPP names a directory.
  1038. if test -n "$CPP" && test -d "$CPP"; then
  1039.   CPP=
  1040. fi
  1041. if test -z "$CPP"; then
  1042. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  1043.   echo $ac_n "(cached) $ac_c" 1>&6
  1044. else
  1045.     # This must be in double quotes, not single quotes, because CPP may get
  1046.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  1047.   CPP="${CC-cc} -E"
  1048.   # On the NeXT, cc -E runs the code through the compiler's parser,
  1049.   # not just through cpp.
  1050.   cat > conftest.$ac_ext <<EOF
  1051. #line 1052 "configure"
  1052. #include "confdefs.h"
  1053. #include <assert.h>
  1054. Syntax Error
  1055. EOF
  1056. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1057. { (eval echo configure:1058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1058. ac_err=`grep -v '^ *+' conftest.out`
  1059. if test -z "$ac_err"; then
  1060.   :
  1061. else
  1062.   echo "$ac_err" >&5
  1063.   rm -rf conftest*
  1064.   CPP="${CC-cc} -E -traditional-cpp"
  1065.   cat > conftest.$ac_ext <<EOF
  1066. #line 1067 "configure"
  1067. #include "confdefs.h"
  1068. #include <assert.h>
  1069. Syntax Error
  1070. EOF
  1071. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1072. { (eval echo configure:1073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1073. ac_err=`grep -v '^ *+' conftest.out`
  1074. if test -z "$ac_err"; then
  1075.   :
  1076. else
  1077.   echo "$ac_err" >&5
  1078.   rm -rf conftest*
  1079.   CPP=/lib/cpp
  1080. fi
  1081. rm -f conftest*
  1082. fi
  1083. rm -f conftest*
  1084.   ac_cv_prog_CPP="$CPP"
  1085. fi
  1086.   CPP="$ac_cv_prog_CPP"
  1087. else
  1088.   ac_cv_prog_CPP="$CPP"
  1089. fi
  1090. echo "$ac_t""$CPP" 1>&6
  1091.  
  1092.  
  1093.  
  1094.  
  1095. # If we cannot run a trivial program, we must be cross compiling.
  1096. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  1097. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  1098.   echo $ac_n "(cached) $ac_c" 1>&6
  1099. else
  1100.   if test "$cross_compiling" = yes; then
  1101.   ac_cv_c_cross=yes
  1102. else
  1103. cat > conftest.$ac_ext <<EOF
  1104. #line 1105 "configure"
  1105. #include "confdefs.h"
  1106. main(){return(0);}
  1107. EOF
  1108. { (eval echo configure:1109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1109. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1110.   ac_cv_c_cross=no
  1111. else
  1112.   ac_cv_c_cross=yes
  1113. fi
  1114. fi
  1115. rm -fr conftest*
  1116. fi
  1117.  
  1118. echo "$ac_t""$ac_cv_c_cross" 1>&6
  1119. cross_compiling=$ac_cv_c_cross
  1120.  
  1121. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1122. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1123.   echo $ac_n "(cached) $ac_c" 1>&6
  1124. else
  1125.   cat > conftest.$ac_ext <<EOF
  1126. #line 1127 "configure"
  1127. #include "confdefs.h"
  1128. #include <stdlib.h>
  1129. #include <stdarg.h>
  1130. #include <string.h>
  1131. #include <float.h>
  1132. EOF
  1133. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1134. { (eval echo configure:1135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1135. ac_err=`grep -v '^ *+' conftest.out`
  1136. if test -z "$ac_err"; then
  1137.   rm -rf conftest*
  1138.   ac_cv_header_stdc=yes
  1139. else
  1140.   echo "$ac_err" >&5
  1141.   rm -rf conftest*
  1142.   ac_cv_header_stdc=no
  1143. fi
  1144. rm -f conftest*
  1145.  
  1146. if test $ac_cv_header_stdc = yes; then
  1147.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1148. cat > conftest.$ac_ext <<EOF
  1149. #line 1150 "configure"
  1150. #include "confdefs.h"
  1151. #include <string.h>
  1152. EOF
  1153. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1154.   egrep "memchr" >/dev/null 2>&1; then
  1155.   :
  1156. else
  1157.   rm -rf conftest*
  1158.   ac_cv_header_stdc=no
  1159. fi
  1160. rm -f conftest*
  1161.  
  1162. fi
  1163.  
  1164. if test $ac_cv_header_stdc = yes; then
  1165.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1166. cat > conftest.$ac_ext <<EOF
  1167. #line 1168 "configure"
  1168. #include "confdefs.h"
  1169. #include <stdlib.h>
  1170. EOF
  1171. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1172.   egrep "free" >/dev/null 2>&1; then
  1173.   :
  1174. else
  1175.   rm -rf conftest*
  1176.   ac_cv_header_stdc=no
  1177. fi
  1178. rm -f conftest*
  1179.  
  1180. fi
  1181.  
  1182. if test $ac_cv_header_stdc = yes; then
  1183.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1184. if test "$cross_compiling" = yes; then
  1185.   :
  1186. else
  1187. cat > conftest.$ac_ext <<EOF
  1188. #line 1189 "configure"
  1189. #include "confdefs.h"
  1190. #include <ctype.h>
  1191. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1192. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1193. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1194. int main () { int i; for (i = 0; i < 256; i++)
  1195. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1196. exit (0); }
  1197.  
  1198. EOF
  1199. { (eval echo configure:1200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1200. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1201.   :
  1202. else
  1203.   ac_cv_header_stdc=no
  1204. fi
  1205. fi
  1206. rm -fr conftest*
  1207. fi
  1208. fi
  1209.  
  1210. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1211. if test $ac_cv_header_stdc = yes; then
  1212.   cat >> confdefs.h <<\EOF
  1213. #define STDC_HEADERS 1
  1214. EOF
  1215.  
  1216. fi
  1217.  
  1218. for ac_hdr in unistd.h stdlib.h string.h memory.h values.h
  1219. do
  1220. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1221. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1222. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1223.   echo $ac_n "(cached) $ac_c" 1>&6
  1224. else
  1225.   cat > conftest.$ac_ext <<EOF
  1226. #line 1227 "configure"
  1227. #include "confdefs.h"
  1228. #include <$ac_hdr>
  1229. EOF
  1230. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1231. { (eval echo configure:1232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1232. ac_err=`grep -v '^ *+' conftest.out`
  1233. if test -z "$ac_err"; then
  1234.   rm -rf conftest*
  1235.   eval "ac_cv_header_$ac_safe=yes"
  1236. else
  1237.   echo "$ac_err" >&5
  1238.   rm -rf conftest*
  1239.   eval "ac_cv_header_$ac_safe=no"
  1240. fi
  1241. rm -f conftest*
  1242. fi
  1243. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1244.   echo "$ac_t""yes" 1>&6
  1245.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1246.   cat >> confdefs.h <<EOF
  1247. #define $ac_tr_hdr 1
  1248. EOF
  1249.  
  1250. else
  1251.   echo "$ac_t""no" 1>&6
  1252. fi
  1253. done
  1254.  
  1255.  
  1256.  
  1257.  
  1258. for ac_hdr in sys/param.h sys/mount.h sys/vfs.h sys/filsys.h fcntl.h
  1259. do
  1260. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1261. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1262. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1263.   echo $ac_n "(cached) $ac_c" 1>&6
  1264. else
  1265.   cat > conftest.$ac_ext <<EOF
  1266. #line 1267 "configure"
  1267. #include "confdefs.h"
  1268. #include <$ac_hdr>
  1269. EOF
  1270. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1271. { (eval echo configure:1272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1272. ac_err=`grep -v '^ *+' conftest.out`
  1273. if test -z "$ac_err"; then
  1274.   rm -rf conftest*
  1275.   eval "ac_cv_header_$ac_safe=yes"
  1276. else
  1277.   echo "$ac_err" >&5
  1278.   rm -rf conftest*
  1279.   eval "ac_cv_header_$ac_safe=no"
  1280. fi
  1281. rm -f conftest*
  1282. fi
  1283. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1284.   echo "$ac_t""yes" 1>&6
  1285.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1286.   cat >> confdefs.h <<EOF
  1287. #define $ac_tr_hdr 1
  1288. EOF
  1289.  
  1290. else
  1291.   echo "$ac_t""no" 1>&6
  1292. fi
  1293. done
  1294.  
  1295. for ac_hdr in sys/statfs.h sys/dustat.h sys/statvfs.h
  1296. do
  1297. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1298. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1299. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1300.   echo $ac_n "(cached) $ac_c" 1>&6
  1301. else
  1302.   cat > conftest.$ac_ext <<EOF
  1303. #line 1304 "configure"
  1304. #include "confdefs.h"
  1305. #include <$ac_hdr>
  1306. EOF
  1307. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1308. { (eval echo configure:1309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1309. ac_err=`grep -v '^ *+' conftest.out`
  1310. if test -z "$ac_err"; then
  1311.   rm -rf conftest*
  1312.   eval "ac_cv_header_$ac_safe=yes"
  1313. else
  1314.   echo "$ac_err" >&5
  1315.   rm -rf conftest*
  1316.   eval "ac_cv_header_$ac_safe=no"
  1317. fi
  1318. rm -f conftest*
  1319. fi
  1320. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1321.   echo "$ac_t""yes" 1>&6
  1322.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1323.   cat >> confdefs.h <<EOF
  1324. #define $ac_tr_hdr 1
  1325. EOF
  1326.  
  1327. else
  1328.   echo "$ac_t""no" 1>&6
  1329. fi
  1330. done
  1331.  
  1332.  
  1333.  
  1334.  
  1335. ac_header_dirent=no
  1336. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  1337. do
  1338. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1339. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  1340. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  1341.   echo $ac_n "(cached) $ac_c" 1>&6
  1342. else
  1343.   cat > conftest.$ac_ext <<EOF
  1344. #line 1345 "configure"
  1345. #include "confdefs.h"
  1346. #include <sys/types.h>
  1347. #include <$ac_hdr>
  1348. int main() { return 0; }
  1349. int t() {
  1350. DIR *dirp = 0;
  1351. ; return 0; }
  1352. EOF
  1353. if { (eval echo configure:1354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1354.   rm -rf conftest*
  1355.   eval "ac_cv_header_dirent_$ac_safe=yes"
  1356. else
  1357.   rm -rf conftest*
  1358.   eval "ac_cv_header_dirent_$ac_safe=no"
  1359. fi
  1360. rm -f conftest*
  1361.  
  1362. fi
  1363. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  1364.   echo "$ac_t""yes" 1>&6
  1365.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'`
  1366.   cat >> confdefs.h <<EOF
  1367. #define $ac_tr_hdr 1
  1368. EOF
  1369.  ac_header_dirent=$ac_hdr; break
  1370. else
  1371.   echo "$ac_t""no" 1>&6
  1372. fi
  1373. done
  1374. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  1375. if test $ac_header_dirent = dirent.h; then
  1376. echo $ac_n "checking for -ldir""... $ac_c" 1>&6
  1377. ac_lib_var=`echo dir'_'opendir | tr './+\055' '__p_'`
  1378. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1379.   echo $ac_n "(cached) $ac_c" 1>&6
  1380. else
  1381.   ac_save_LIBS="$LIBS"
  1382. LIBS="-ldir  $LIBS"
  1383. cat > conftest.$ac_ext <<EOF
  1384. #line 1385 "configure"
  1385. #include "confdefs.h"
  1386. /* Override any gcc2 internal prototype to avoid an error.  */
  1387. /* We use char because int might match the return type of a gcc2
  1388.     builtin and then its argument prototype would still apply.  */
  1389. char opendir();
  1390.  
  1391. int main() { return 0; }
  1392. int t() {
  1393. opendir()
  1394. ; return 0; }
  1395. EOF
  1396. if { (eval echo configure:1397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1397.   rm -rf conftest*
  1398.   eval "ac_cv_lib_$ac_lib_var=yes"
  1399. else
  1400.   rm -rf conftest*
  1401.   eval "ac_cv_lib_$ac_lib_var=no"
  1402. fi
  1403. rm -f conftest*
  1404. LIBS="$ac_save_LIBS"
  1405.  
  1406. fi
  1407. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1408.   echo "$ac_t""yes" 1>&6
  1409.   LIBS="$LIBS -ldir"
  1410. else
  1411.   echo "$ac_t""no" 1>&6
  1412. fi
  1413.  
  1414. else
  1415. echo $ac_n "checking for -lx""... $ac_c" 1>&6
  1416. ac_lib_var=`echo x'_'opendir | tr './+\055' '__p_'`
  1417. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1418.   echo $ac_n "(cached) $ac_c" 1>&6
  1419. else
  1420.   ac_save_LIBS="$LIBS"
  1421. LIBS="-lx  $LIBS"
  1422. cat > conftest.$ac_ext <<EOF
  1423. #line 1424 "configure"
  1424. #include "confdefs.h"
  1425. /* Override any gcc2 internal prototype to avoid an error.  */
  1426. /* We use char because int might match the return type of a gcc2
  1427.     builtin and then its argument prototype would still apply.  */
  1428. char opendir();
  1429.  
  1430. int main() { return 0; }
  1431. int t() {
  1432. opendir()
  1433. ; return 0; }
  1434. EOF
  1435. if { (eval echo configure:1436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1436.   rm -rf conftest*
  1437.   eval "ac_cv_lib_$ac_lib_var=yes"
  1438. else
  1439.   rm -rf conftest*
  1440.   eval "ac_cv_lib_$ac_lib_var=no"
  1441. fi
  1442. rm -f conftest*
  1443. LIBS="$ac_save_LIBS"
  1444.  
  1445. fi
  1446. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1447.   echo "$ac_t""yes" 1>&6
  1448.   LIBS="$LIBS -lx"
  1449. else
  1450.   echo "$ac_t""no" 1>&6
  1451. fi
  1452.  
  1453. fi
  1454.  
  1455.  
  1456.  
  1457.  
  1458. echo $ac_n "checking for working const""... $ac_c" 1>&6
  1459. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1460.   echo $ac_n "(cached) $ac_c" 1>&6
  1461. else
  1462.   cat > conftest.$ac_ext <<EOF
  1463. #line 1464 "configure"
  1464. #include "confdefs.h"
  1465.  
  1466. int main() { return 0; }
  1467. int t() {
  1468.  
  1469. /* Ultrix mips cc rejects this.  */
  1470. typedef int charset[2]; const charset x;
  1471. /* SunOS 4.1.1 cc rejects this.  */
  1472. char const *const *ccp;
  1473. char **p;
  1474. /* NEC SVR4.0.2 mips cc rejects this.  */
  1475. struct point {int x, y;};
  1476. static struct point const zero = {0,0};
  1477. /* AIX XL C 1.02.0.0 rejects this.
  1478.    It does not let you subtract one const X* pointer from another in an arm
  1479.    of an if-expression whose if-part is not a constant expression */
  1480. const char *g = "string";
  1481. ccp = &g + (g ? g-g : 0);
  1482. /* HPUX 7.0 cc rejects these. */
  1483. ++ccp;
  1484. p = (char**) ccp;
  1485. ccp = (char const *const *) p;
  1486. { /* SCO 3.2v4 cc rejects this.  */
  1487.   char *t;
  1488.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  1489.  
  1490.   *t++ = 0;
  1491. }
  1492. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  1493.   int x[] = {25, 17};
  1494.   const int *foo = &x[0];
  1495.   ++foo;
  1496. }
  1497. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1498.   typedef const int *iptr;
  1499.   iptr p = 0;
  1500.   ++p;
  1501. }
  1502. { /* AIX XL C 1.02.0.0 rejects this saying
  1503.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1504.   struct s { int j; const int *ap[3]; };
  1505.   struct s *b; b->j = 5;
  1506. }
  1507. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1508.   const int foo = 10;
  1509. }
  1510.  
  1511. ; return 0; }
  1512. EOF
  1513. if { (eval echo configure:1514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1514.   rm -rf conftest*
  1515.   ac_cv_c_const=yes
  1516. else
  1517.   rm -rf conftest*
  1518.   ac_cv_c_const=no
  1519. fi
  1520. rm -f conftest*
  1521.  
  1522. fi
  1523.  
  1524. echo "$ac_t""$ac_cv_c_const" 1>&6
  1525. if test $ac_cv_c_const = no; then
  1526.   cat >> confdefs.h <<\EOF
  1527. #define const 
  1528. EOF
  1529.  
  1530. fi
  1531.  
  1532.  
  1533.  
  1534.  
  1535. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  1536. if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  1537.   echo $ac_n "(cached) $ac_c" 1>&6
  1538. else
  1539.   cat > conftest.$ac_ext <<EOF
  1540. #line 1541 "configure"
  1541. #include "confdefs.h"
  1542. #include <sys/types.h>
  1543. #include <signal.h>
  1544. #ifdef signal
  1545. #undef signal
  1546. #endif
  1547. #ifdef __cplusplus
  1548. extern "C" void (*signal (int, void (*)(int)))(int);
  1549. #else
  1550. void (*signal ()) ();
  1551. #endif
  1552.  
  1553. int main() { return 0; }
  1554. int t() {
  1555. int i;
  1556. ; return 0; }
  1557. EOF
  1558. if { (eval echo configure:1559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1559.   rm -rf conftest*
  1560.   ac_cv_type_signal=void
  1561. else
  1562.   rm -rf conftest*
  1563.   ac_cv_type_signal=int
  1564. fi
  1565. rm -f conftest*
  1566.  
  1567. fi
  1568.  
  1569. echo "$ac_t""$ac_cv_type_signal" 1>&6
  1570. cat >> confdefs.h <<EOF
  1571. #define RETSIGTYPE $ac_cv_type_signal
  1572. EOF
  1573.  
  1574.  
  1575. echo $ac_n "checking for pid_t""... $ac_c" 1>&6
  1576. if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  1577.   echo $ac_n "(cached) $ac_c" 1>&6
  1578. else
  1579.   cat > conftest.$ac_ext <<EOF
  1580. #line 1581 "configure"
  1581. #include "confdefs.h"
  1582. #include <sys/types.h>
  1583. #if STDC_HEADERS
  1584. #include <stdlib.h>
  1585. #endif
  1586. EOF
  1587. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1588.   egrep "pid_t" >/dev/null 2>&1; then
  1589.   rm -rf conftest*
  1590.   ac_cv_type_pid_t=yes
  1591. else
  1592.   rm -rf conftest*
  1593.   ac_cv_type_pid_t=no
  1594. fi
  1595. rm -f conftest*
  1596.  
  1597. fi
  1598. echo "$ac_t""$ac_cv_type_pid_t" 1>&6
  1599. if test $ac_cv_type_pid_t = no; then
  1600.   cat >> confdefs.h <<\EOF
  1601. #define pid_t int
  1602. EOF
  1603.  
  1604. fi
  1605.  
  1606. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  1607. if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
  1608.   echo $ac_n "(cached) $ac_c" 1>&6
  1609. else
  1610.   cat > conftest.$ac_ext <<EOF
  1611. #line 1612 "configure"
  1612. #include "confdefs.h"
  1613. #include <sys/types.h>
  1614. EOF
  1615. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1616.   egrep "uid_t" >/dev/null 2>&1; then
  1617.   rm -rf conftest*
  1618.   ac_cv_type_uid_t=yes
  1619. else
  1620.   rm -rf conftest*
  1621.   ac_cv_type_uid_t=no
  1622. fi
  1623. rm -f conftest*
  1624.  
  1625. fi
  1626.  
  1627. echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  1628. if test $ac_cv_type_uid_t = no; then
  1629.   cat >> confdefs.h <<\EOF
  1630. #define uid_t int
  1631. EOF
  1632.  
  1633.   cat >> confdefs.h <<\EOF
  1634. #define gid_t int
  1635. EOF
  1636.  
  1637. fi
  1638.  
  1639. echo $ac_n "checking for mode_t""... $ac_c" 1>&6
  1640. if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
  1641.   echo $ac_n "(cached) $ac_c" 1>&6
  1642. else
  1643.   cat > conftest.$ac_ext <<EOF
  1644. #line 1645 "configure"
  1645. #include "confdefs.h"
  1646. #include <sys/types.h>
  1647. #if STDC_HEADERS
  1648. #include <stdlib.h>
  1649. #endif
  1650. EOF
  1651. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1652.   egrep "mode_t" >/dev/null 2>&1; then
  1653.   rm -rf conftest*
  1654.   ac_cv_type_mode_t=yes
  1655. else
  1656.   rm -rf conftest*
  1657.   ac_cv_type_mode_t=no
  1658. fi
  1659. rm -f conftest*
  1660.  
  1661. fi
  1662. echo "$ac_t""$ac_cv_type_mode_t" 1>&6
  1663. if test $ac_cv_type_mode_t = no; then
  1664.   cat >> confdefs.h <<\EOF
  1665. #define mode_t int
  1666. EOF
  1667.  
  1668. fi
  1669.  
  1670. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  1671. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  1672.   echo $ac_n "(cached) $ac_c" 1>&6
  1673. else
  1674.   cat > conftest.$ac_ext <<EOF
  1675. #line 1676 "configure"
  1676. #include "confdefs.h"
  1677. #include <sys/types.h>
  1678. #if STDC_HEADERS
  1679. #include <stdlib.h>
  1680. #endif
  1681. EOF
  1682. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1683.   egrep "size_t" >/dev/null 2>&1; then
  1684.   rm -rf conftest*
  1685.   ac_cv_type_size_t=yes
  1686. else
  1687.   rm -rf conftest*
  1688.   ac_cv_type_size_t=no
  1689. fi
  1690. rm -f conftest*
  1691.  
  1692. fi
  1693. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  1694. if test $ac_cv_type_size_t = no; then
  1695.   cat >> confdefs.h <<\EOF
  1696. #define size_t unsigned
  1697. EOF
  1698.  
  1699. fi
  1700.  
  1701.  
  1702.  
  1703.  
  1704. for ac_hdr in sys/time.h
  1705. do
  1706. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1707. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1708. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1709.   echo $ac_n "(cached) $ac_c" 1>&6
  1710. else
  1711.   cat > conftest.$ac_ext <<EOF
  1712. #line 1713 "configure"
  1713. #include "confdefs.h"
  1714. #include <$ac_hdr>
  1715. EOF
  1716. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1717. { (eval echo configure:1718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1718. ac_err=`grep -v '^ *+' conftest.out`
  1719. if test -z "$ac_err"; then
  1720.   rm -rf conftest*
  1721.   eval "ac_cv_header_$ac_safe=yes"
  1722. else
  1723.   echo "$ac_err" >&5
  1724.   rm -rf conftest*
  1725.   eval "ac_cv_header_$ac_safe=no"
  1726. fi
  1727. rm -f conftest*
  1728. fi
  1729. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1730.   echo "$ac_t""yes" 1>&6
  1731.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1732.   cat >> confdefs.h <<EOF
  1733. #define $ac_tr_hdr 1
  1734. EOF
  1735.  
  1736. else
  1737.   echo "$ac_t""no" 1>&6
  1738. fi
  1739. done
  1740.  
  1741. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  1742. if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  1743.   echo $ac_n "(cached) $ac_c" 1>&6
  1744. else
  1745.   cat > conftest.$ac_ext <<EOF
  1746. #line 1747 "configure"
  1747. #include "confdefs.h"
  1748. #include <sys/types.h>
  1749. #include <sys/time.h>
  1750. #include <time.h>
  1751. int main() { return 0; }
  1752. int t() {
  1753. struct tm *tp;
  1754. ; return 0; }
  1755. EOF
  1756. if { (eval echo configure:1757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1757.   rm -rf conftest*
  1758.   ac_cv_header_time=yes
  1759. else
  1760.   rm -rf conftest*
  1761.   ac_cv_header_time=no
  1762. fi
  1763. rm -f conftest*
  1764.  
  1765. fi
  1766.  
  1767. echo "$ac_t""$ac_cv_header_time" 1>&6
  1768. if test $ac_cv_header_time = yes; then
  1769.   cat >> confdefs.h <<\EOF
  1770. #define TIME_WITH_SYS_TIME 1
  1771. EOF
  1772.  
  1773. fi
  1774.  
  1775.  
  1776.  
  1777.  
  1778. echo $ac_n "checking for long file names""... $ac_c" 1>&6
  1779. if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
  1780.   echo $ac_n "(cached) $ac_c" 1>&6
  1781. else
  1782.   ac_cv_sys_long_file_names=yes
  1783. # Test for long file names in all the places we know might matter:
  1784. #      .        the current directory, where building will happen
  1785. #      /tmp        where it might want to write temporary files
  1786. #      /var/tmp        likewise
  1787. #      /usr/tmp        likewise
  1788. #      $prefix/lib    where we will be installing things
  1789. #      $exec_prefix/lib    likewise
  1790. # eval it to expand exec_prefix.
  1791. for ac_dir in `eval echo . /tmp /var/tmp /usr/tmp $prefix/lib $exec_prefix/lib` ; do
  1792.   test -d $ac_dir || continue
  1793.   test -w $ac_dir || continue # It is less confusing to not echo anything here.
  1794.   (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
  1795.   (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
  1796.   val=`cat $ac_dir/conftest9012345 2>/dev/null`
  1797.   if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
  1798.     ac_cv_sys_long_file_names=no
  1799.     rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
  1800.     break
  1801.   fi
  1802.   rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
  1803. done
  1804. fi
  1805.  
  1806. echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
  1807. if test $ac_cv_sys_long_file_names = yes; then
  1808.   cat >> confdefs.h <<\EOF
  1809. #define HAVE_LONG_FILE_NAMES 1
  1810. EOF
  1811.  
  1812. fi
  1813.  
  1814.  
  1815.  
  1816.  
  1817. echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
  1818. if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
  1819.   echo $ac_n "(cached) $ac_c" 1>&6
  1820. else
  1821.   cat > conftest.$ac_ext <<EOF
  1822. #line 1823 "configure"
  1823. #include "confdefs.h"
  1824. #include <sys/types.h>
  1825. #include <sys/stat.h>
  1826.  
  1827. #if defined(S_ISBLK) && defined(S_IFDIR)
  1828. # if S_ISBLK (S_IFDIR)
  1829. You lose.
  1830. # endif
  1831. #endif
  1832.  
  1833. #if defined(S_ISBLK) && defined(S_IFCHR)
  1834. # if S_ISBLK (S_IFCHR)
  1835. You lose.
  1836. # endif
  1837. #endif
  1838.  
  1839. #if defined(S_ISLNK) && defined(S_IFREG)
  1840. # if S_ISLNK (S_IFREG)
  1841. You lose.
  1842. # endif
  1843. #endif
  1844.  
  1845. #if defined(S_ISSOCK) && defined(S_IFREG)
  1846. # if S_ISSOCK (S_IFREG)
  1847. You lose.
  1848. # endif
  1849. #endif
  1850.  
  1851. EOF
  1852. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1853.   egrep "You lose" >/dev/null 2>&1; then
  1854.   rm -rf conftest*
  1855.   ac_cv_header_stat_broken=yes
  1856. else
  1857.   rm -rf conftest*
  1858.   ac_cv_header_stat_broken=no
  1859. fi
  1860. rm -f conftest*
  1861.  
  1862. fi
  1863.  
  1864. echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
  1865. if test $ac_cv_header_stat_broken = yes; then
  1866.   cat >> confdefs.h <<\EOF
  1867. #define STAT_MACROS_BROKEN 1
  1868. EOF
  1869.  
  1870. fi
  1871.  
  1872.  
  1873.  
  1874.  
  1875. for ac_func in lstat
  1876. do
  1877. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1878. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1879.   echo $ac_n "(cached) $ac_c" 1>&6
  1880. else
  1881.   cat > conftest.$ac_ext <<EOF
  1882. #line 1883 "configure"
  1883. #include "confdefs.h"
  1884. /* System header to define __stub macros and hopefully few prototypes,
  1885.     which can conflict with char $ac_func(); below.  */
  1886. #include <assert.h>
  1887. /* Override any gcc2 internal prototype to avoid an error.  */
  1888. /* We use char because int might match the return type of a gcc2
  1889.     builtin and then its argument prototype would still apply.  */
  1890. char $ac_func();
  1891.  
  1892. int main() { return 0; }
  1893. int t() {
  1894.  
  1895. /* The GNU C library defines this for functions which it implements
  1896.     to always fail with ENOSYS.  Some functions are actually named
  1897.     something starting with __ and the normal name is an alias.  */
  1898. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1899. choke me
  1900. #else
  1901. $ac_func();
  1902. #endif
  1903.  
  1904. ; return 0; }
  1905. EOF
  1906. if { (eval echo configure:1907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1907.   rm -rf conftest*
  1908.   eval "ac_cv_func_$ac_func=yes"
  1909. else
  1910.   rm -rf conftest*
  1911.   eval "ac_cv_func_$ac_func=no"
  1912. fi
  1913. rm -f conftest*
  1914.  
  1915. fi
  1916. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1917.   echo "$ac_t""yes" 1>&6
  1918.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1919.   cat >> confdefs.h <<EOF
  1920. #define $ac_tr_func 1
  1921. EOF
  1922.  
  1923. else
  1924.   echo "$ac_t""no" 1>&6
  1925. fi
  1926. done
  1927.  
  1928.  
  1929.  
  1930.  
  1931. for ac_func in strerror
  1932. do
  1933. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1934. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1935.   echo $ac_n "(cached) $ac_c" 1>&6
  1936. else
  1937.   cat > conftest.$ac_ext <<EOF
  1938. #line 1939 "configure"
  1939. #include "confdefs.h"
  1940. /* System header to define __stub macros and hopefully few prototypes,
  1941.     which can conflict with char $ac_func(); below.  */
  1942. #include <assert.h>
  1943. /* Override any gcc2 internal prototype to avoid an error.  */
  1944. /* We use char because int might match the return type of a gcc2
  1945.     builtin and then its argument prototype would still apply.  */
  1946. char $ac_func();
  1947.  
  1948. int main() { return 0; }
  1949. int t() {
  1950.  
  1951. /* The GNU C library defines this for functions which it implements
  1952.     to always fail with ENOSYS.  Some functions are actually named
  1953.     something starting with __ and the normal name is an alias.  */
  1954. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1955. choke me
  1956. #else
  1957. $ac_func();
  1958. #endif
  1959.  
  1960. ; return 0; }
  1961. EOF
  1962. if { (eval echo configure:1963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1963.   rm -rf conftest*
  1964.   eval "ac_cv_func_$ac_func=yes"
  1965. else
  1966.   rm -rf conftest*
  1967.   eval "ac_cv_func_$ac_func=no"
  1968. fi
  1969. rm -f conftest*
  1970.  
  1971. fi
  1972. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1973.   echo "$ac_t""yes" 1>&6
  1974.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1975.   cat >> confdefs.h <<EOF
  1976. #define $ac_tr_func 1
  1977. EOF
  1978.  
  1979. else
  1980.   echo "$ac_t""no" 1>&6
  1981. fi
  1982. done
  1983.  
  1984.  
  1985.  
  1986.  
  1987. for ac_func in strcasecmp
  1988. do
  1989. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1990. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1991.   echo $ac_n "(cached) $ac_c" 1>&6
  1992. else
  1993.   cat > conftest.$ac_ext <<EOF
  1994. #line 1995 "configure"
  1995. #include "confdefs.h"
  1996. /* System header to define __stub macros and hopefully few prototypes,
  1997.     which can conflict with char $ac_func(); below.  */
  1998. #include <assert.h>
  1999. /* Override any gcc2 internal prototype to avoid an error.  */
  2000. /* We use char because int might match the return type of a gcc2
  2001.     builtin and then its argument prototype would still apply.  */
  2002. char $ac_func();
  2003.  
  2004. int main() { return 0; }
  2005. int t() {
  2006.  
  2007. /* The GNU C library defines this for functions which it implements
  2008.     to always fail with ENOSYS.  Some functions are actually named
  2009.     something starting with __ and the normal name is an alias.  */
  2010. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2011. choke me
  2012. #else
  2013. $ac_func();
  2014. #endif
  2015.  
  2016. ; return 0; }
  2017. EOF
  2018. if { (eval echo configure:2019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2019.   rm -rf conftest*
  2020.   eval "ac_cv_func_$ac_func=yes"
  2021. else
  2022.   rm -rf conftest*
  2023.   eval "ac_cv_func_$ac_func=no"
  2024. fi
  2025. rm -f conftest*
  2026.  
  2027. fi
  2028. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2029.   echo "$ac_t""yes" 1>&6
  2030.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2031.   cat >> confdefs.h <<EOF
  2032. #define $ac_tr_func 1
  2033. EOF
  2034.  
  2035. else
  2036.   echo "$ac_t""no" 1>&6
  2037. fi
  2038. done
  2039.  
  2040.  
  2041.  
  2042.  
  2043. for ac_func in strncasecmp
  2044. do
  2045. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2046. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2047.   echo $ac_n "(cached) $ac_c" 1>&6
  2048. else
  2049.   cat > conftest.$ac_ext <<EOF
  2050. #line 2051 "configure"
  2051. #include "confdefs.h"
  2052. /* System header to define __stub macros and hopefully few prototypes,
  2053.     which can conflict with char $ac_func(); below.  */
  2054. #include <assert.h>
  2055. /* Override any gcc2 internal prototype to avoid an error.  */
  2056. /* We use char because int might match the return type of a gcc2
  2057.     builtin and then its argument prototype would still apply.  */
  2058. char $ac_func();
  2059.  
  2060. int main() { return 0; }
  2061. int t() {
  2062.  
  2063. /* The GNU C library defines this for functions which it implements
  2064.     to always fail with ENOSYS.  Some functions are actually named
  2065.     something starting with __ and the normal name is an alias.  */
  2066. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2067. choke me
  2068. #else
  2069. $ac_func();
  2070. #endif
  2071.  
  2072. ; return 0; }
  2073. EOF
  2074. if { (eval echo configure:2075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2075.   rm -rf conftest*
  2076.   eval "ac_cv_func_$ac_func=yes"
  2077. else
  2078.   rm -rf conftest*
  2079.   eval "ac_cv_func_$ac_func=no"
  2080. fi
  2081. rm -f conftest*
  2082.  
  2083. fi
  2084. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2085.   echo "$ac_t""yes" 1>&6
  2086.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2087.   cat >> confdefs.h <<EOF
  2088. #define $ac_tr_func 1
  2089. EOF
  2090.  
  2091. else
  2092.   echo "$ac_t""no" 1>&6
  2093. fi
  2094. done
  2095.  
  2096.  
  2097.  
  2098.  
  2099. for ac_func in strstr
  2100. do
  2101. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2102. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2103.   echo $ac_n "(cached) $ac_c" 1>&6
  2104. else
  2105.   cat > conftest.$ac_ext <<EOF
  2106. #line 2107 "configure"
  2107. #include "confdefs.h"
  2108. /* System header to define __stub macros and hopefully few prototypes,
  2109.     which can conflict with char $ac_func(); below.  */
  2110. #include <assert.h>
  2111. /* Override any gcc2 internal prototype to avoid an error.  */
  2112. /* We use char because int might match the return type of a gcc2
  2113.     builtin and then its argument prototype would still apply.  */
  2114. char $ac_func();
  2115.  
  2116. int main() { return 0; }
  2117. int t() {
  2118.  
  2119. /* The GNU C library defines this for functions which it implements
  2120.     to always fail with ENOSYS.  Some functions are actually named
  2121.     something starting with __ and the normal name is an alias.  */
  2122. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2123. choke me
  2124. #else
  2125. $ac_func();
  2126. #endif
  2127.  
  2128. ; return 0; }
  2129. EOF
  2130. if { (eval echo configure:2131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2131.   rm -rf conftest*
  2132.   eval "ac_cv_func_$ac_func=yes"
  2133. else
  2134.   rm -rf conftest*
  2135.   eval "ac_cv_func_$ac_func=no"
  2136. fi
  2137. rm -f conftest*
  2138.  
  2139. fi
  2140. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2141.   echo "$ac_t""yes" 1>&6
  2142.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2143.   cat >> confdefs.h <<EOF
  2144. #define $ac_tr_func 1
  2145. EOF
  2146.  
  2147. else
  2148.   echo "$ac_t""no" 1>&6
  2149. fi
  2150. done
  2151.  
  2152.  
  2153.  
  2154.  
  2155. for ac_func in memmove
  2156. do
  2157. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2158. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2159.   echo $ac_n "(cached) $ac_c" 1>&6
  2160. else
  2161.   cat > conftest.$ac_ext <<EOF
  2162. #line 2163 "configure"
  2163. #include "confdefs.h"
  2164. /* System header to define __stub macros and hopefully few prototypes,
  2165.     which can conflict with char $ac_func(); below.  */
  2166. #include <assert.h>
  2167. /* Override any gcc2 internal prototype to avoid an error.  */
  2168. /* We use char because int might match the return type of a gcc2
  2169.     builtin and then its argument prototype would still apply.  */
  2170. char $ac_func();
  2171.  
  2172. int main() { return 0; }
  2173. int t() {
  2174.  
  2175. /* The GNU C library defines this for functions which it implements
  2176.     to always fail with ENOSYS.  Some functions are actually named
  2177.     something starting with __ and the normal name is an alias.  */
  2178. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2179. choke me
  2180. #else
  2181. $ac_func();
  2182. #endif
  2183.  
  2184. ; return 0; }
  2185. EOF
  2186. if { (eval echo configure:2187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2187.   rm -rf conftest*
  2188.   eval "ac_cv_func_$ac_func=yes"
  2189. else
  2190.   rm -rf conftest*
  2191.   eval "ac_cv_func_$ac_func=no"
  2192. fi
  2193. rm -f conftest*
  2194.  
  2195. fi
  2196. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2197.   echo "$ac_t""yes" 1>&6
  2198.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2199.   cat >> confdefs.h <<EOF
  2200. #define $ac_tr_func 1
  2201. EOF
  2202.  
  2203. else
  2204.   echo "$ac_t""no" 1>&6
  2205. fi
  2206. done
  2207.  
  2208.  
  2209.  
  2210.  
  2211. for ac_func in putenv
  2212. do
  2213. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2214. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2215.   echo $ac_n "(cached) $ac_c" 1>&6
  2216. else
  2217.   cat > conftest.$ac_ext <<EOF
  2218. #line 2219 "configure"
  2219. #include "confdefs.h"
  2220. /* System header to define __stub macros and hopefully few prototypes,
  2221.     which can conflict with char $ac_func(); below.  */
  2222. #include <assert.h>
  2223. /* Override any gcc2 internal prototype to avoid an error.  */
  2224. /* We use char because int might match the return type of a gcc2
  2225.     builtin and then its argument prototype would still apply.  */
  2226. char $ac_func();
  2227.  
  2228. int main() { return 0; }
  2229. int t() {
  2230.  
  2231. /* The GNU C library defines this for functions which it implements
  2232.     to always fail with ENOSYS.  Some functions are actually named
  2233.     something starting with __ and the normal name is an alias.  */
  2234. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2235. choke me
  2236. #else
  2237. $ac_func();
  2238. #endif
  2239.  
  2240. ; return 0; }
  2241. EOF
  2242. if { (eval echo configure:2243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2243.   rm -rf conftest*
  2244.   eval "ac_cv_func_$ac_func=yes"
  2245. else
  2246.   rm -rf conftest*
  2247.   eval "ac_cv_func_$ac_func=no"
  2248. fi
  2249. rm -f conftest*
  2250.  
  2251. fi
  2252. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2253.   echo "$ac_t""yes" 1>&6
  2254.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2255.   cat >> confdefs.h <<EOF
  2256. #define $ac_tr_func 1
  2257. EOF
  2258.  
  2259. else
  2260.   echo "$ac_t""no" 1>&6
  2261. fi
  2262. done
  2263.  
  2264.  
  2265.  
  2266.  
  2267. for ac_func in setenv
  2268. do
  2269. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2270. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2271.   echo $ac_n "(cached) $ac_c" 1>&6
  2272. else
  2273.   cat > conftest.$ac_ext <<EOF
  2274. #line 2275 "configure"
  2275. #include "confdefs.h"
  2276. /* System header to define __stub macros and hopefully few prototypes,
  2277.     which can conflict with char $ac_func(); below.  */
  2278. #include <assert.h>
  2279. /* Override any gcc2 internal prototype to avoid an error.  */
  2280. /* We use char because int might match the return type of a gcc2
  2281.     builtin and then its argument prototype would still apply.  */
  2282. char $ac_func();
  2283.  
  2284. int main() { return 0; }
  2285. int t() {
  2286.  
  2287. /* The GNU C library defines this for functions which it implements
  2288.     to always fail with ENOSYS.  Some functions are actually named
  2289.     something starting with __ and the normal name is an alias.  */
  2290. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2291. choke me
  2292. #else
  2293. $ac_func();
  2294. #endif
  2295.  
  2296. ; return 0; }
  2297. EOF
  2298. if { (eval echo configure:2299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2299.   rm -rf conftest*
  2300.   eval "ac_cv_func_$ac_func=yes"
  2301. else
  2302.   rm -rf conftest*
  2303.   eval "ac_cv_func_$ac_func=no"
  2304. fi
  2305. rm -f conftest*
  2306.  
  2307. fi
  2308. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2309.   echo "$ac_t""yes" 1>&6
  2310.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2311.   cat >> confdefs.h <<EOF
  2312. #define $ac_tr_func 1
  2313. EOF
  2314.  
  2315. else
  2316.   echo "$ac_t""no" 1>&6
  2317. fi
  2318. done
  2319.  
  2320.  
  2321.  
  2322.  
  2323. for ac_func in getcwd
  2324. do
  2325. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2326. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2327.   echo $ac_n "(cached) $ac_c" 1>&6
  2328. else
  2329.   cat > conftest.$ac_ext <<EOF
  2330. #line 2331 "configure"
  2331. #include "confdefs.h"
  2332. /* System header to define __stub macros and hopefully few prototypes,
  2333.     which can conflict with char $ac_func(); below.  */
  2334. #include <assert.h>
  2335. /* Override any gcc2 internal prototype to avoid an error.  */
  2336. /* We use char because int might match the return type of a gcc2
  2337.     builtin and then its argument prototype would still apply.  */
  2338. char $ac_func();
  2339.  
  2340. int main() { return 0; }
  2341. int t() {
  2342.  
  2343. /* The GNU C library defines this for functions which it implements
  2344.     to always fail with ENOSYS.  Some functions are actually named
  2345.     something starting with __ and the normal name is an alias.  */
  2346. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2347. choke me
  2348. #else
  2349. $ac_func();
  2350. #endif
  2351.  
  2352. ; return 0; }
  2353. EOF
  2354. if { (eval echo configure:2355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2355.   rm -rf conftest*
  2356.   eval "ac_cv_func_$ac_func=yes"
  2357. else
  2358.   rm -rf conftest*
  2359.   eval "ac_cv_func_$ac_func=no"
  2360. fi
  2361. rm -f conftest*
  2362.  
  2363. fi
  2364. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2365.   echo "$ac_t""yes" 1>&6
  2366.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2367.   cat >> confdefs.h <<EOF
  2368. #define $ac_tr_func 1
  2369. EOF
  2370.  
  2371. else
  2372.   echo "$ac_t""no" 1>&6
  2373. fi
  2374. done
  2375.  
  2376.  
  2377.  
  2378.  
  2379. echo "checking how to get filesystem space usage" 1>&6
  2380. space=no
  2381.  
  2382. # Here we'll compromise a little (and perform only the link test)
  2383. # since it seems there are no variants of the statvfs function.
  2384. if test $space = no; then
  2385.   # SVR4
  2386.   for ac_func in statvfs
  2387. do
  2388. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2389. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2390.   echo $ac_n "(cached) $ac_c" 1>&6
  2391. else
  2392.   cat > conftest.$ac_ext <<EOF
  2393. #line 2394 "configure"
  2394. #include "confdefs.h"
  2395. /* System header to define __stub macros and hopefully few prototypes,
  2396.     which can conflict with char $ac_func(); below.  */
  2397. #include <assert.h>
  2398. /* Override any gcc2 internal prototype to avoid an error.  */
  2399. /* We use char because int might match the return type of a gcc2
  2400.     builtin and then its argument prototype would still apply.  */
  2401. char $ac_func();
  2402.  
  2403. int main() { return 0; }
  2404. int t() {
  2405.  
  2406. /* The GNU C library defines this for functions which it implements
  2407.     to always fail with ENOSYS.  Some functions are actually named
  2408.     something starting with __ and the normal name is an alias.  */
  2409. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2410. choke me
  2411. #else
  2412. $ac_func();
  2413. #endif
  2414.  
  2415. ; return 0; }
  2416. EOF
  2417. if { (eval echo configure:2418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2418.   rm -rf conftest*
  2419.   eval "ac_cv_func_$ac_func=yes"
  2420. else
  2421.   rm -rf conftest*
  2422.   eval "ac_cv_func_$ac_func=no"
  2423. fi
  2424. rm -f conftest*
  2425.  
  2426. fi
  2427. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2428.   echo "$ac_t""yes" 1>&6
  2429.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2430.   cat >> confdefs.h <<EOF
  2431. #define $ac_tr_func 1
  2432. EOF
  2433.  
  2434. else
  2435.   echo "$ac_t""no" 1>&6
  2436. fi
  2437. done
  2438.  
  2439.   if test $ac_cv_func_statvfs = yes; then
  2440.     space=yes
  2441.     cat >> confdefs.h <<\EOF
  2442. #define STAT_STATVFS 1
  2443. EOF
  2444.  
  2445.   fi
  2446. fi
  2447.  
  2448. if test $space = no; then
  2449.   # DEC Alpha running OSF/1
  2450.   echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
  2451.   if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
  2452.   echo $ac_n "(cached) $ac_c" 1>&6
  2453. else
  2454.   if test "$cross_compiling" = yes; then
  2455.   fu_cv_sys_stat_statfs3_osf1=no
  2456. else
  2457. cat > conftest.$ac_ext <<EOF
  2458. #line 2459 "configure"
  2459. #include "confdefs.h"
  2460.  
  2461. #include <sys/param.h>
  2462. #include <sys/types.h>
  2463. #include <sys/mount.h>
  2464.   main ()
  2465.   {
  2466.     struct statfs fsd;
  2467.     fsd.f_fsize = 0;
  2468.     exit (statfs (".", &fsd, sizeof (struct statfs)));
  2469.   }
  2470. EOF
  2471. { (eval echo configure:2472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2472. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2473.   fu_cv_sys_stat_statfs3_osf1=yes
  2474. else
  2475.   fu_cv_sys_stat_statfs3_osf1=no
  2476. fi
  2477. fi
  2478. rm -fr conftest*
  2479. fi
  2480.  
  2481.   echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
  2482.   if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
  2483.     space=yes
  2484.     cat >> confdefs.h <<\EOF
  2485. #define STAT_STATFS3_OSF1 1
  2486. EOF
  2487.  
  2488.   fi
  2489. fi
  2490.  
  2491. if test $space = no; then
  2492. # AIX
  2493.   echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
  2494.   if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
  2495.   echo $ac_n "(cached) $ac_c" 1>&6
  2496. else
  2497.   if test "$cross_compiling" = yes; then
  2498.   fu_cv_sys_stat_statfs2_bsize=no
  2499. else
  2500. cat > conftest.$ac_ext <<EOF
  2501. #line 2502 "configure"
  2502. #include "confdefs.h"
  2503.  
  2504. #ifdef HAVE_SYS_PARAM_H
  2505. #include <sys/param.h>
  2506. #endif
  2507. #ifdef HAVE_SYS_MOUNT_H
  2508. #include <sys/mount.h>
  2509. #endif
  2510. #ifdef HAVE_SYS_VFS_H
  2511. #include <sys/vfs.h>
  2512. #endif
  2513.   main ()
  2514.   {
  2515.   struct statfs fsd;
  2516.   fsd.f_bsize = 0;
  2517.   exit (statfs (".", &fsd));
  2518.   }
  2519. EOF
  2520. { (eval echo configure:2521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2521. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2522.   fu_cv_sys_stat_statfs2_bsize=yes
  2523. else
  2524.   fu_cv_sys_stat_statfs2_bsize=no
  2525. fi
  2526. fi
  2527. rm -fr conftest*
  2528. fi
  2529.  
  2530.   echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
  2531.   if test $fu_cv_sys_stat_statfs2_bsize = yes; then
  2532.     space=yes
  2533.     cat >> confdefs.h <<\EOF
  2534. #define STAT_STATFS2_BSIZE 1
  2535. EOF
  2536.  
  2537.   fi
  2538. fi
  2539.  
  2540. if test $space = no; then
  2541. # SVR3
  2542.   echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
  2543.   if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
  2544.   echo $ac_n "(cached) $ac_c" 1>&6
  2545. else
  2546.   if test "$cross_compiling" = yes; then
  2547.   fu_cv_sys_stat_statfs4=no
  2548. else
  2549. cat > conftest.$ac_ext <<EOF
  2550. #line 2551 "configure"
  2551. #include "confdefs.h"
  2552. #include <sys/types.h>
  2553. #include <sys/statfs.h>
  2554.   main ()
  2555.   {
  2556.   struct statfs fsd;
  2557.   exit (statfs (".", &fsd, sizeof fsd, 0));
  2558.   }
  2559. EOF
  2560. { (eval echo configure:2561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2561. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2562.   fu_cv_sys_stat_statfs4=yes
  2563. else
  2564.   fu_cv_sys_stat_statfs4=no
  2565. fi
  2566. fi
  2567. rm -fr conftest*
  2568. fi
  2569.  
  2570.   echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
  2571.   if test $fu_cv_sys_stat_statfs4 = yes; then
  2572.     space=yes
  2573.     cat >> confdefs.h <<\EOF
  2574. #define STAT_STATFS4 1
  2575. EOF
  2576.  
  2577.   fi
  2578. fi
  2579.  
  2580. if test $space = no; then
  2581. # 4.4BSD and NetBSD
  2582.   echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
  2583.   if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
  2584.   echo $ac_n "(cached) $ac_c" 1>&6
  2585. else
  2586.   if test "$cross_compiling" = yes; then
  2587.   fu_cv_sys_stat_statfs2_fsize=no
  2588. else
  2589. cat > conftest.$ac_ext <<EOF
  2590. #line 2591 "configure"
  2591. #include "confdefs.h"
  2592. #include <sys/types.h>
  2593. #ifdef HAVE_SYS_PARAM_H
  2594. #include <sys/param.h>
  2595. #endif
  2596. #ifdef HAVE_SYS_MOUNT_H
  2597. #include <sys/mount.h>
  2598. #endif
  2599.   main ()
  2600.   {
  2601.   struct statfs fsd;
  2602.   fsd.f_fsize = 0;
  2603.   exit (statfs (".", &fsd));
  2604.   }
  2605. EOF
  2606. { (eval echo configure:2607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2607. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2608.   fu_cv_sys_stat_statfs2_fsize=yes
  2609. else
  2610.   fu_cv_sys_stat_statfs2_fsize=no
  2611. fi
  2612. fi
  2613. rm -fr conftest*
  2614. fi
  2615.  
  2616.   echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
  2617.   if test $fu_cv_sys_stat_statfs2_fsize = yes; then
  2618.     space=yes
  2619.     cat >> confdefs.h <<\EOF
  2620. #define STAT_STATFS2_FSIZE 1
  2621. EOF
  2622.  
  2623.   fi
  2624. fi
  2625.  
  2626. if test $space = no; then
  2627.   # Ultrix
  2628.   echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
  2629.   if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
  2630.   echo $ac_n "(cached) $ac_c" 1>&6
  2631. else
  2632.   if test "$cross_compiling" = yes; then
  2633.   fu_cv_sys_stat_fs_data=no
  2634. else
  2635. cat > conftest.$ac_ext <<EOF
  2636. #line 2637 "configure"
  2637. #include "confdefs.h"
  2638. #include <sys/types.h>
  2639. #ifdef HAVE_SYS_PARAM_H
  2640. #include <sys/param.h>
  2641. #endif
  2642. #ifdef HAVE_SYS_MOUNT_H
  2643. #include <sys/mount.h>
  2644. #endif
  2645. #ifdef HAVE_SYS_FS_TYPES_H
  2646. #include <sys/fs_types.h>
  2647. #endif
  2648.   main ()
  2649.   {
  2650.   struct fs_data fsd;
  2651.   /* Ultrix's statfs returns 1 for success,
  2652.      0 for not mounted, -1 for failure.  */
  2653.   exit (statfs (".", &fsd) != 1);
  2654.   }
  2655. EOF
  2656. { (eval echo configure:2657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2657. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2658.   fu_cv_sys_stat_fs_data=yes
  2659. else
  2660.   fu_cv_sys_stat_fs_data=no
  2661. fi
  2662. fi
  2663. rm -fr conftest*
  2664. fi
  2665.  
  2666.   echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
  2667.   if test $fu_cv_sys_stat_fs_data = yes; then
  2668.     space=yes
  2669.     cat >> confdefs.h <<\EOF
  2670. #define STAT_STATFS2_FS_DATA 1
  2671. EOF
  2672.  
  2673.   fi
  2674. fi
  2675.  
  2676.  
  2677.  
  2678.  
  2679. echo $ac_n "checking for -lreadline""... $ac_c" 1>&6
  2680. ac_lib_var=`echo readline'_'tilde_expand | tr './+\055' '__p_'`
  2681. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2682.   echo $ac_n "(cached) $ac_c" 1>&6
  2683. else
  2684.   ac_save_LIBS="$LIBS"
  2685. LIBS="-lreadline  $LIBS"
  2686. cat > conftest.$ac_ext <<EOF
  2687. #line 2688 "configure"
  2688. #include "confdefs.h"
  2689. /* Override any gcc2 internal prototype to avoid an error.  */
  2690. /* We use char because int might match the return type of a gcc2
  2691.     builtin and then its argument prototype would still apply.  */
  2692. char tilde_expand();
  2693.  
  2694. int main() { return 0; }
  2695. int t() {
  2696. tilde_expand()
  2697. ; return 0; }
  2698. EOF
  2699. if { (eval echo configure:2700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2700.   rm -rf conftest*
  2701.   eval "ac_cv_lib_$ac_lib_var=yes"
  2702. else
  2703.   rm -rf conftest*
  2704.   eval "ac_cv_lib_$ac_lib_var=no"
  2705. fi
  2706. rm -f conftest*
  2707. LIBS="$ac_save_LIBS"
  2708.  
  2709. fi
  2710. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2711.   echo "$ac_t""yes" 1>&6
  2712.     ac_tr_lib=HAVE_LIB`echo readline | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2713.   cat >> confdefs.h <<EOF
  2714. #define $ac_tr_lib 1
  2715. EOF
  2716.  
  2717.   LIBS="-lreadline $LIBS"
  2718.  
  2719. else
  2720.   echo "$ac_t""no" 1>&6
  2721. fi
  2722.  
  2723. echo $ac_n "checking for tilde_expand""... $ac_c" 1>&6
  2724. if eval "test \"`echo '$''{'ac_cv_func_tilde_expand'+set}'`\" = set"; then
  2725.   echo $ac_n "(cached) $ac_c" 1>&6
  2726. else
  2727.   cat > conftest.$ac_ext <<EOF
  2728. #line 2729 "configure"
  2729. #include "confdefs.h"
  2730. /* System header to define __stub macros and hopefully few prototypes,
  2731.     which can conflict with char tilde_expand(); below.  */
  2732. #include <assert.h>
  2733. /* Override any gcc2 internal prototype to avoid an error.  */
  2734. /* We use char because int might match the return type of a gcc2
  2735.     builtin and then its argument prototype would still apply.  */
  2736. char tilde_expand();
  2737.  
  2738. int main() { return 0; }
  2739. int t() {
  2740.  
  2741. /* The GNU C library defines this for functions which it implements
  2742.     to always fail with ENOSYS.  Some functions are actually named
  2743.     something starting with __ and the normal name is an alias.  */
  2744. #if defined (__stub_tilde_expand) || defined (__stub___tilde_expand)
  2745. choke me
  2746. #else
  2747. tilde_expand();
  2748. #endif
  2749.  
  2750. ; return 0; }
  2751. EOF
  2752. if { (eval echo configure:2753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2753.   rm -rf conftest*
  2754.   eval "ac_cv_func_tilde_expand=yes"
  2755. else
  2756.   rm -rf conftest*
  2757.   eval "ac_cv_func_tilde_expand=no"
  2758. fi
  2759. rm -f conftest*
  2760.  
  2761. fi
  2762. if eval "test \"`echo '$ac_cv_func_'tilde_expand`\" = yes"; then
  2763.   echo "$ac_t""yes" 1>&6
  2764.   :
  2765. else
  2766.   echo "$ac_t""no" 1>&6
  2767. GIT_OBJS="$GIT_OBJS tilde.o"
  2768.           GITPS_OBJS="$GITPS_OBJS tilde.o"
  2769.           GITVIEW_OBJS="$GITVIEW_OBJS tilde.o"
  2770. fi
  2771.  
  2772. echo $ac_n "checking for using_history""... $ac_c" 1>&6
  2773. if eval "test \"`echo '$''{'ac_cv_func_using_history'+set}'`\" = set"; then
  2774.   echo $ac_n "(cached) $ac_c" 1>&6
  2775. else
  2776.   cat > conftest.$ac_ext <<EOF
  2777. #line 2778 "configure"
  2778. #include "confdefs.h"
  2779. /* System header to define __stub macros and hopefully few prototypes,
  2780.     which can conflict with char using_history(); below.  */
  2781. #include <assert.h>
  2782. /* Override any gcc2 internal prototype to avoid an error.  */
  2783. /* We use char because int might match the return type of a gcc2
  2784.     builtin and then its argument prototype would still apply.  */
  2785. char using_history();
  2786.  
  2787. int main() { return 0; }
  2788. int t() {
  2789.  
  2790. /* The GNU C library defines this for functions which it implements
  2791.     to always fail with ENOSYS.  Some functions are actually named
  2792.     something starting with __ and the normal name is an alias.  */
  2793. #if defined (__stub_using_history) || defined (__stub___using_history)
  2794. choke me
  2795. #else
  2796. using_history();
  2797. #endif
  2798.  
  2799. ; return 0; }
  2800. EOF
  2801. if { (eval echo configure:2802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2802.   rm -rf conftest*
  2803.   eval "ac_cv_func_using_history=yes"
  2804. else
  2805.   rm -rf conftest*
  2806.   eval "ac_cv_func_using_history=no"
  2807. fi
  2808. rm -f conftest*
  2809.  
  2810. fi
  2811. if eval "test \"`echo '$ac_cv_func_'using_history`\" = yes"; then
  2812.   echo "$ac_t""yes" 1>&6
  2813.   :
  2814. else
  2815.   echo "$ac_t""no" 1>&6
  2816. GIT_OBJS="$GIT_OBJS history.o"
  2817. fi
  2818.  
  2819.  
  2820.  
  2821.  
  2822. echo $ac_n "checking for struct winsz""... $ac_c" 1>&6
  2823.  
  2824. if eval "test \"`echo '$''{'git_cv_struct_winsz'+set}'`\" = set"; then
  2825.   echo $ac_n "(cached) $ac_c" 1>&6
  2826. else
  2827.   git_cv_struct_winsz="no"
  2828.     cat > conftest.$ac_ext <<EOF
  2829. #line 2830 "configure"
  2830. #include "confdefs.h"
  2831. #include <sys/types.h>
  2832.      #include <sys/ioctl.h>
  2833.      #if defined TIOCGSIZE && !defined TIOCGWINSZ
  2834.      #define TIOCGWINSZ TIOCGSIZE
  2835.      #endif
  2836. int main() { return 0; }
  2837. int t() {
  2838. {
  2839.         struct winsize winsz;
  2840.         ioctl(1, TIOCGWINSZ, &winsz);
  2841.         winsz.ws_col = winsz.ws_row;
  2842.     }
  2843. ; return 0; }
  2844. EOF
  2845. if { (eval echo configure:2846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2846.   rm -rf conftest*
  2847.   git_cv_struct_winsz="yes"
  2848.     
  2849. fi
  2850. rm -f conftest*
  2851.  
  2852.  
  2853. fi
  2854.  
  2855.  
  2856. if test "$git_cv_struct_winsz" = "yes"; then
  2857.     cat >> confdefs.h <<\EOF
  2858. #define HAVE_WINSZ 1
  2859. EOF
  2860.  
  2861. fi
  2862.  
  2863. echo "$ac_t""$git_cv_struct_winsz" 1>&6
  2864.  
  2865.  
  2866.  
  2867. echo $ac_n "checking for dumb C compiler""... $ac_c" 1>&6
  2868.  
  2869. if eval "test \"`echo '$''{'git_cv_dumb_cc'+set}'`\" = set"; then
  2870.   echo $ac_n "(cached) $ac_c" 1>&6
  2871. else
  2872.   git_cv_dumb_cc="yes"
  2873.     cat > conftest.$ac_ext <<EOF
  2874. #line 2875 "configure"
  2875. #include "confdefs.h"
  2876. void tst(char);
  2877.      void tst(i)
  2878.          char i;
  2879.      {}
  2880. int main() { return 0; }
  2881. int t() {
  2882. {
  2883.         tst('A');
  2884.     }
  2885. ; return 0; }
  2886. EOF
  2887. if { (eval echo configure:2888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2888.   rm -rf conftest*
  2889.   git_cv_dumb_cc="no"
  2890.     
  2891. fi
  2892. rm -f conftest*
  2893.  
  2894.  
  2895. fi
  2896.  
  2897.  
  2898. if test "$git_cv_dumb_cc" = "yes"; then
  2899.     cat >> confdefs.h <<\EOF
  2900. #define HAVE_DUMB_CC 1
  2901. EOF
  2902.  
  2903. fi
  2904.  
  2905. echo "$ac_t""$git_cv_dumb_cc" 1>&6
  2906.  
  2907.  
  2908.  
  2909. echo $ac_n "checking for struct utsname""... $ac_c" 1>&6
  2910.  
  2911. if eval "test \"`echo '$''{'git_cv_struct_utsname'+set}'`\" = set"; then
  2912.   echo $ac_n "(cached) $ac_c" 1>&6
  2913. else
  2914.   git_cv_struct_utsname="no"
  2915.     cat > conftest.$ac_ext <<EOF
  2916. #line 2917 "configure"
  2917. #include "confdefs.h"
  2918. #include <sys/utsname.h>
  2919. int main() { return 0; }
  2920. int t() {
  2921. {
  2922.         char *ptr;
  2923.         struct utsname u;
  2924.  
  2925.         uname(&u);
  2926.         ptr = u.nodename;
  2927.         ptr = u.sysname;
  2928.         ptr = u.machine;
  2929.     }
  2930. ; return 0; }
  2931. EOF
  2932. if { (eval echo configure:2933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2933.   rm -rf conftest*
  2934.   git_cv_struct_utsname="yes"
  2935.     
  2936. fi
  2937. rm -f conftest*
  2938.  
  2939.  
  2940. fi
  2941.  
  2942.  
  2943. if test "$git_cv_struct_utsname" = "yes"; then
  2944.     cat >> confdefs.h <<\EOF
  2945. #define HAVE_UTSNAME 1
  2946. EOF
  2947.  
  2948. fi
  2949.  
  2950. echo "$ac_t""$git_cv_struct_utsname" 1>&6
  2951.  
  2952.  
  2953.  
  2954. echo $ac_n "checking for POSIX compatible terminal interface""... $ac_c" 1>&6
  2955.  
  2956. if eval "test \"`echo '$''{'git_cv_sys_posix_tty'+set}'`\" = set"; then
  2957.   echo $ac_n "(cached) $ac_c" 1>&6
  2958. else
  2959.   git_cv_sys_posix_tty="no"
  2960.     cat > conftest.$ac_ext <<EOF
  2961. #line 2962 "configure"
  2962. #include "confdefs.h"
  2963. #include <termios.h>
  2964. int main() { return 0; }
  2965. int t() {
  2966. {
  2967.         struct termios term;
  2968.  
  2969.         tcgetattr(0, &term);
  2970.     }
  2971. ; return 0; }
  2972. EOF
  2973. if { (eval echo configure:2974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2974.   rm -rf conftest*
  2975.   git_cv_sys_posix_tty="yes"
  2976.     
  2977. fi
  2978. rm -f conftest*
  2979.  
  2980.  
  2981. fi
  2982.  
  2983.  
  2984. if test "$git_cv_sys_posix_tty" = "yes"; then
  2985.     cat >> confdefs.h <<\EOF
  2986. #define HAVE_POSIX_TTY 1
  2987. EOF
  2988.  
  2989. fi
  2990.  
  2991. echo "$ac_t""$git_cv_sys_posix_tty" 1>&6
  2992.  
  2993.  
  2994.  
  2995. echo $ac_n "checking for System V compatible terminal interface""... $ac_c" 1>&6
  2996.  
  2997. if eval "test \"`echo '$''{'git_cv_sys_systemv_tty'+set}'`\" = set"; then
  2998.   echo $ac_n "(cached) $ac_c" 1>&6
  2999. else
  3000.   git_cv_sys_systemv_tty="no"
  3001.     cat > conftest.$ac_ext <<EOF
  3002. #line 3003 "configure"
  3003. #include "confdefs.h"
  3004. #include <termio.h>
  3005. int main() { return 0; }
  3006. int t() {
  3007. {
  3008.         struct termio term;
  3009.  
  3010.         ioctl(0, TCGETA, &term);
  3011.     }
  3012. ; return 0; }
  3013. EOF
  3014. if { (eval echo configure:3015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3015.   rm -rf conftest*
  3016.   git_cv_sys_systemv_tty="yes"
  3017.     
  3018. fi
  3019. rm -f conftest*
  3020.  
  3021.  
  3022. fi
  3023.  
  3024.  
  3025. if test "$git_cv_sys_systemv_tty" = "yes"; then
  3026.     cat >> confdefs.h <<\EOF
  3027. #define HAVE_SYSTEMV_TTY 1
  3028. EOF
  3029.  
  3030. fi
  3031.  
  3032. echo "$ac_t""$git_cv_sys_systemv_tty" 1>&6
  3033.  
  3034.  
  3035.  
  3036. echo $ac_n "checking for BSD compatible terminal interface""... $ac_c" 1>&6
  3037.  
  3038. if eval "test \"`echo '$''{'git_cv_sys_bsd_tty'+set}'`\" = set"; then
  3039.   echo $ac_n "(cached) $ac_c" 1>&6
  3040. else
  3041.   git_cv_sys_bsd_tty="no"
  3042.     cat > conftest.$ac_ext <<EOF
  3043. #line 3044 "configure"
  3044. #include "confdefs.h"
  3045. #include <sgtty.h>
  3046. int main() { return 0; }
  3047. int t() {
  3048. {
  3049.         struct sgttyb arg;
  3050.         struct tchars targ;
  3051.         struct ltchars ltarg;
  3052.  
  3053.         ioctl(0, TIOCGETP,&arg);
  3054.         ioctl(0, TIOCGETC,&targ);
  3055.         ioctl(0, TIOCGLTC,<arg);
  3056.     }
  3057. ; return 0; }
  3058. EOF
  3059. if { (eval echo configure:3060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3060.   rm -rf conftest*
  3061.   git_cv_sys_bsd_tty="yes"
  3062.     
  3063. fi
  3064. rm -f conftest*
  3065.  
  3066.  
  3067. fi
  3068.  
  3069.  
  3070. if test "$git_cv_sys_bsd_tty" = "yes"; then
  3071.     cat >> confdefs.h <<\EOF
  3072. #define HAVE_BSD_TTY 1
  3073. EOF
  3074.  
  3075. fi
  3076.  
  3077. echo "$ac_t""$git_cv_sys_bsd_tty" 1>&6
  3078.  
  3079.  
  3080.  
  3081.  
  3082. if test "$TERMINFO" = "yes"; then
  3083.         echo $ac_n "checking for -lncurses""... $ac_c" 1>&6
  3084. ac_lib_var=`echo ncurses'_'tgetent | tr './+\055' '__p_'`
  3085. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3086.   echo $ac_n "(cached) $ac_c" 1>&6
  3087. else
  3088.   ac_save_LIBS="$LIBS"
  3089. LIBS="-lncurses  $LIBS"
  3090. cat > conftest.$ac_ext <<EOF
  3091. #line 3092 "configure"
  3092. #include "confdefs.h"
  3093. /* Override any gcc2 internal prototype to avoid an error.  */
  3094. /* We use char because int might match the return type of a gcc2
  3095.     builtin and then its argument prototype would still apply.  */
  3096. char tgetent();
  3097.  
  3098. int main() { return 0; }
  3099. int t() {
  3100. tgetent()
  3101. ; return 0; }
  3102. EOF
  3103. if { (eval echo configure:3104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3104.   rm -rf conftest*
  3105.   eval "ac_cv_lib_$ac_lib_var=yes"
  3106. else
  3107.   rm -rf conftest*
  3108.   eval "ac_cv_lib_$ac_lib_var=no"
  3109. fi
  3110. rm -f conftest*
  3111. LIBS="$ac_save_LIBS"
  3112.  
  3113. fi
  3114. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3115.   echo "$ac_t""yes" 1>&6
  3116.   cat >> confdefs.h <<\EOF
  3117. #define HAVE_LIBTERMINFO 1
  3118. EOF
  3119.  
  3120.                  LIBS="$LIBS -lncurses"
  3121.                  TERMLIB_FOUND="yes"
  3122. else
  3123.   echo "$ac_t""no" 1>&6
  3124. echo $ac_n "checking for -ltermlib""... $ac_c" 1>&6
  3125. ac_lib_var=`echo termlib'_'tgetent | tr './+\055' '__p_'`
  3126. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3127.   echo $ac_n "(cached) $ac_c" 1>&6
  3128. else
  3129.   ac_save_LIBS="$LIBS"
  3130. LIBS="-ltermlib  $LIBS"
  3131. cat > conftest.$ac_ext <<EOF
  3132. #line 3133 "configure"
  3133. #include "confdefs.h"
  3134. /* Override any gcc2 internal prototype to avoid an error.  */
  3135. /* We use char because int might match the return type of a gcc2
  3136.     builtin and then its argument prototype would still apply.  */
  3137. char tgetent();
  3138.  
  3139. int main() { return 0; }
  3140. int t() {
  3141. tgetent()
  3142. ; return 0; }
  3143. EOF
  3144. if { (eval echo configure:3145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3145.   rm -rf conftest*
  3146.   eval "ac_cv_lib_$ac_lib_var=yes"
  3147. else
  3148.   rm -rf conftest*
  3149.   eval "ac_cv_lib_$ac_lib_var=no"
  3150. fi
  3151. rm -f conftest*
  3152. LIBS="$ac_save_LIBS"
  3153.  
  3154. fi
  3155. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3156.   echo "$ac_t""yes" 1>&6
  3157.   cat >> confdefs.h <<\EOF
  3158. #define HAVE_LIBTERMINFO 1
  3159. EOF
  3160.  
  3161.                     LIBS="$LIBS -ltermlib"
  3162.                     TERMLIB_FOUND="yes"
  3163. else
  3164.   echo "$ac_t""no" 1>&6
  3165. echo $ac_n "checking for -lcurses""... $ac_c" 1>&6
  3166. ac_lib_var=`echo curses'_'tgetent | tr './+\055' '__p_'`
  3167. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3168.   echo $ac_n "(cached) $ac_c" 1>&6
  3169. else
  3170.   ac_save_LIBS="$LIBS"
  3171. LIBS="-lcurses  $LIBS"
  3172. cat > conftest.$ac_ext <<EOF
  3173. #line 3174 "configure"
  3174. #include "confdefs.h"
  3175. /* Override any gcc2 internal prototype to avoid an error.  */
  3176. /* We use char because int might match the return type of a gcc2
  3177.     builtin and then its argument prototype would still apply.  */
  3178. char tgetent();
  3179.  
  3180. int main() { return 0; }
  3181. int t() {
  3182. tgetent()
  3183. ; return 0; }
  3184. EOF
  3185. if { (eval echo configure:3186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3186.   rm -rf conftest*
  3187.   eval "ac_cv_lib_$ac_lib_var=yes"
  3188. else
  3189.   rm -rf conftest*
  3190.   eval "ac_cv_lib_$ac_lib_var=no"
  3191. fi
  3192. rm -f conftest*
  3193. LIBS="$ac_save_LIBS"
  3194.  
  3195. fi
  3196. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3197.   echo "$ac_t""yes" 1>&6
  3198.   cat >> confdefs.h <<\EOF
  3199. #define HAVE_LIBTERMINFO 1
  3200. EOF
  3201.  
  3202.                        LIBS="$LIBS -lcurses"
  3203.                        TERMLIB_FOUND="yes"
  3204. else
  3205.   echo "$ac_t""no" 1>&6
  3206. echo $ac_n "checking for -ltinfo""... $ac_c" 1>&6
  3207. ac_lib_var=`echo tinfo'_'tgetent | tr './+\055' '__p_'`
  3208. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3209.   echo $ac_n "(cached) $ac_c" 1>&6
  3210. else
  3211.   ac_save_LIBS="$LIBS"
  3212. LIBS="-ltinfo  $LIBS"
  3213. cat > conftest.$ac_ext <<EOF
  3214. #line 3215 "configure"
  3215. #include "confdefs.h"
  3216. /* Override any gcc2 internal prototype to avoid an error.  */
  3217. /* We use char because int might match the return type of a gcc2
  3218.     builtin and then its argument prototype would still apply.  */
  3219. char tgetent();
  3220.  
  3221. int main() { return 0; }
  3222. int t() {
  3223. tgetent()
  3224. ; return 0; }
  3225. EOF
  3226. if { (eval echo configure:3227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3227.   rm -rf conftest*
  3228.   eval "ac_cv_lib_$ac_lib_var=yes"
  3229. else
  3230.   rm -rf conftest*
  3231.   eval "ac_cv_lib_$ac_lib_var=no"
  3232. fi
  3233. rm -f conftest*
  3234. LIBS="$ac_save_LIBS"
  3235.  
  3236. fi
  3237. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3238.   echo "$ac_t""yes" 1>&6
  3239.   cat >> confdefs.h <<\EOF
  3240. #define HAVE_LIBTERMINFO 1
  3241. EOF
  3242.  
  3243.                       LIBS="$LIBS -ltinfo"
  3244.                       TERMLIB_FOUND="yes"
  3245. else
  3246.   echo "$ac_t""no" 1>&6
  3247. echo $ac_n "checking for -lterminfo""... $ac_c" 1>&6
  3248. ac_lib_var=`echo terminfo'_'tgetent | tr './+\055' '__p_'`
  3249. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3250.   echo $ac_n "(cached) $ac_c" 1>&6
  3251. else
  3252.   ac_save_LIBS="$LIBS"
  3253. LIBS="-lterminfo  $LIBS"
  3254. cat > conftest.$ac_ext <<EOF
  3255. #line 3256 "configure"
  3256. #include "confdefs.h"
  3257. /* Override any gcc2 internal prototype to avoid an error.  */
  3258. /* We use char because int might match the return type of a gcc2
  3259.     builtin and then its argument prototype would still apply.  */
  3260. char tgetent();
  3261.  
  3262. int main() { return 0; }
  3263. int t() {
  3264. tgetent()
  3265. ; return 0; }
  3266. EOF
  3267. if { (eval echo configure:3268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3268.   rm -rf conftest*
  3269.   eval "ac_cv_lib_$ac_lib_var=yes"
  3270. else
  3271.   rm -rf conftest*
  3272.   eval "ac_cv_lib_$ac_lib_var=no"
  3273. fi
  3274. rm -f conftest*
  3275. LIBS="$ac_save_LIBS"
  3276.  
  3277. fi
  3278. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3279.   echo "$ac_t""yes" 1>&6
  3280.   cat >> confdefs.h <<\EOF
  3281. #define HAVE_LIBTERMINFO 1
  3282. EOF
  3283.  
  3284.                          LIBS="$LIBS -lterminfo"
  3285.                          TERMLIB_FOUND="yes"
  3286. else
  3287.   echo "$ac_t""no" 1>&6
  3288. TERMLIB_FOUND="no"
  3289.             
  3290. fi
  3291.  
  3292.         
  3293. fi
  3294.  
  3295.         
  3296. fi
  3297.  
  3298.     
  3299. fi
  3300.  
  3301.     
  3302. fi
  3303.  
  3304.  
  3305.  
  3306.     if test "$TERMLIB_FOUND" = "no"; then
  3307.     echo $ac_n "checking for -ltermcap""... $ac_c" 1>&6
  3308. ac_lib_var=`echo termcap'_'tgetent | tr './+\055' '__p_'`
  3309. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3310.   echo $ac_n "(cached) $ac_c" 1>&6
  3311. else
  3312.   ac_save_LIBS="$LIBS"
  3313. LIBS="-ltermcap  $LIBS"
  3314. cat > conftest.$ac_ext <<EOF
  3315. #line 3316 "configure"
  3316. #include "confdefs.h"
  3317. /* Override any gcc2 internal prototype to avoid an error.  */
  3318. /* We use char because int might match the return type of a gcc2
  3319.     builtin and then its argument prototype would still apply.  */
  3320. char tgetent();
  3321.  
  3322. int main() { return 0; }
  3323. int t() {
  3324. tgetent()
  3325. ; return 0; }
  3326. EOF
  3327. if { (eval echo configure:3328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3328.   rm -rf conftest*
  3329.   eval "ac_cv_lib_$ac_lib_var=yes"
  3330. else
  3331.   rm -rf conftest*
  3332.   eval "ac_cv_lib_$ac_lib_var=no"
  3333. fi
  3334. rm -f conftest*
  3335. LIBS="$ac_save_LIBS"
  3336.  
  3337. fi
  3338. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3339.   echo "$ac_t""yes" 1>&6
  3340.   cat >> confdefs.h <<\EOF
  3341. #define HAVE_LIBTERMCAP 1
  3342. EOF
  3343.  
  3344.              LIBS="$LIBS -ltermcap"
  3345.              TERMLIB_FOUND="yes"
  3346. else
  3347.   echo "$ac_t""no" 1>&6
  3348. fi
  3349.  
  3350.     fi
  3351. else
  3352.     echo $ac_n "checking for -ltermcap""... $ac_c" 1>&6
  3353. ac_lib_var=`echo termcap'_'tgetent | tr './+\055' '__p_'`
  3354. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3355.   echo $ac_n "(cached) $ac_c" 1>&6
  3356. else
  3357.   ac_save_LIBS="$LIBS"
  3358. LIBS="-ltermcap  $LIBS"
  3359. cat > conftest.$ac_ext <<EOF
  3360. #line 3361 "configure"
  3361. #include "confdefs.h"
  3362. /* Override any gcc2 internal prototype to avoid an error.  */
  3363. /* We use char because int might match the return type of a gcc2
  3364.     builtin and then its argument prototype would still apply.  */
  3365. char tgetent();
  3366.  
  3367. int main() { return 0; }
  3368. int t() {
  3369. tgetent()
  3370. ; return 0; }
  3371. EOF
  3372. if { (eval echo configure:3373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3373.   rm -rf conftest*
  3374.   eval "ac_cv_lib_$ac_lib_var=yes"
  3375. else
  3376.   rm -rf conftest*
  3377.   eval "ac_cv_lib_$ac_lib_var=no"
  3378. fi
  3379. rm -f conftest*
  3380. LIBS="$ac_save_LIBS"
  3381.  
  3382. fi
  3383. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3384.   echo "$ac_t""yes" 1>&6
  3385.   cat >> confdefs.h <<\EOF
  3386. #define HAVE_LIBTERMCAP 1
  3387. EOF
  3388.  
  3389.          LIBS="$LIBS -ltermcap"
  3390.          TERMLIB_FOUND="yes"
  3391. else
  3392.   echo "$ac_t""no" 1>&6
  3393.     echo $ac_n "checking for -lncurses""... $ac_c" 1>&6
  3394. ac_lib_var=`echo ncurses'_'tgetent | tr './+\055' '__p_'`
  3395. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3396.   echo $ac_n "(cached) $ac_c" 1>&6
  3397. else
  3398.   ac_save_LIBS="$LIBS"
  3399. LIBS="-lncurses  $LIBS"
  3400. cat > conftest.$ac_ext <<EOF
  3401. #line 3402 "configure"
  3402. #include "confdefs.h"
  3403. /* Override any gcc2 internal prototype to avoid an error.  */
  3404. /* We use char because int might match the return type of a gcc2
  3405.     builtin and then its argument prototype would still apply.  */
  3406. char tgetent();
  3407.  
  3408. int main() { return 0; }
  3409. int t() {
  3410. tgetent()
  3411. ; return 0; }
  3412. EOF
  3413. if { (eval echo configure:3414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3414.   rm -rf conftest*
  3415.   eval "ac_cv_lib_$ac_lib_var=yes"
  3416. else
  3417.   rm -rf conftest*
  3418.   eval "ac_cv_lib_$ac_lib_var=no"
  3419. fi
  3420. rm -f conftest*
  3421. LIBS="$ac_save_LIBS"
  3422.  
  3423. fi
  3424. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3425.   echo "$ac_t""yes" 1>&6
  3426.   cat >> confdefs.h <<\EOF
  3427. #define HAVE_LIBTERMINFO 1
  3428. EOF
  3429.  
  3430.                  LIBS="$LIBS -lncurses"
  3431.                  TERMLIB_FOUND="yes"
  3432. else
  3433.   echo "$ac_t""no" 1>&6
  3434. echo $ac_n "checking for -ltermlib""... $ac_c" 1>&6
  3435. ac_lib_var=`echo termlib'_'tgetent | tr './+\055' '__p_'`
  3436. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3437.   echo $ac_n "(cached) $ac_c" 1>&6
  3438. else
  3439.   ac_save_LIBS="$LIBS"
  3440. LIBS="-ltermlib  $LIBS"
  3441. cat > conftest.$ac_ext <<EOF
  3442. #line 3443 "configure"
  3443. #include "confdefs.h"
  3444. /* Override any gcc2 internal prototype to avoid an error.  */
  3445. /* We use char because int might match the return type of a gcc2
  3446.     builtin and then its argument prototype would still apply.  */
  3447. char tgetent();
  3448.  
  3449. int main() { return 0; }
  3450. int t() {
  3451. tgetent()
  3452. ; return 0; }
  3453. EOF
  3454. if { (eval echo configure:3455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3455.   rm -rf conftest*
  3456.   eval "ac_cv_lib_$ac_lib_var=yes"
  3457. else
  3458.   rm -rf conftest*
  3459.   eval "ac_cv_lib_$ac_lib_var=no"
  3460. fi
  3461. rm -f conftest*
  3462. LIBS="$ac_save_LIBS"
  3463.  
  3464. fi
  3465. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3466.   echo "$ac_t""yes" 1>&6
  3467.   cat >> confdefs.h <<\EOF
  3468. #define HAVE_LIBTERMINFO 1
  3469. EOF
  3470.  
  3471.                     LIBS="$LIBS -ltermlib"
  3472.                     TERMLIB_FOUND="yes"
  3473. else
  3474.   echo "$ac_t""no" 1>&6
  3475. echo $ac_n "checking for -lcurses""... $ac_c" 1>&6
  3476. ac_lib_var=`echo curses'_'tgetent | tr './+\055' '__p_'`
  3477. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3478.   echo $ac_n "(cached) $ac_c" 1>&6
  3479. else
  3480.   ac_save_LIBS="$LIBS"
  3481. LIBS="-lcurses  $LIBS"
  3482. cat > conftest.$ac_ext <<EOF
  3483. #line 3484 "configure"
  3484. #include "confdefs.h"
  3485. /* Override any gcc2 internal prototype to avoid an error.  */
  3486. /* We use char because int might match the return type of a gcc2
  3487.     builtin and then its argument prototype would still apply.  */
  3488. char tgetent();
  3489.  
  3490. int main() { return 0; }
  3491. int t() {
  3492. tgetent()
  3493. ; return 0; }
  3494. EOF
  3495. if { (eval echo configure:3496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3496.   rm -rf conftest*
  3497.   eval "ac_cv_lib_$ac_lib_var=yes"
  3498. else
  3499.   rm -rf conftest*
  3500.   eval "ac_cv_lib_$ac_lib_var=no"
  3501. fi
  3502. rm -f conftest*
  3503. LIBS="$ac_save_LIBS"
  3504.  
  3505. fi
  3506. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3507.   echo "$ac_t""yes" 1>&6
  3508.   cat >> confdefs.h <<\EOF
  3509. #define HAVE_LIBTERMINFO 1
  3510. EOF
  3511.  
  3512.                        LIBS="$LIBS -lcurses"
  3513.                        TERMLIB_FOUND="yes"
  3514. else
  3515.   echo "$ac_t""no" 1>&6
  3516. echo $ac_n "checking for -ltinfo""... $ac_c" 1>&6
  3517. ac_lib_var=`echo tinfo'_'tgetent | tr './+\055' '__p_'`
  3518. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3519.   echo $ac_n "(cached) $ac_c" 1>&6
  3520. else
  3521.   ac_save_LIBS="$LIBS"
  3522. LIBS="-ltinfo  $LIBS"
  3523. cat > conftest.$ac_ext <<EOF
  3524. #line 3525 "configure"
  3525. #include "confdefs.h"
  3526. /* Override any gcc2 internal prototype to avoid an error.  */
  3527. /* We use char because int might match the return type of a gcc2
  3528.     builtin and then its argument prototype would still apply.  */
  3529. char tgetent();
  3530.  
  3531. int main() { return 0; }
  3532. int t() {
  3533. tgetent()
  3534. ; return 0; }
  3535. EOF
  3536. if { (eval echo configure:3537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3537.   rm -rf conftest*
  3538.   eval "ac_cv_lib_$ac_lib_var=yes"
  3539. else
  3540.   rm -rf conftest*
  3541.   eval "ac_cv_lib_$ac_lib_var=no"
  3542. fi
  3543. rm -f conftest*
  3544. LIBS="$ac_save_LIBS"
  3545.  
  3546. fi
  3547. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3548.   echo "$ac_t""yes" 1>&6
  3549.   cat >> confdefs.h <<\EOF
  3550. #define HAVE_LIBTERMINFO 1
  3551. EOF
  3552.  
  3553.                       LIBS="$LIBS -ltinfo"
  3554.                       TERMLIB_FOUND="yes"
  3555. else
  3556.   echo "$ac_t""no" 1>&6
  3557. echo $ac_n "checking for -lterminfo""... $ac_c" 1>&6
  3558. ac_lib_var=`echo terminfo'_'tgetent | tr './+\055' '__p_'`
  3559. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3560.   echo $ac_n "(cached) $ac_c" 1>&6
  3561. else
  3562.   ac_save_LIBS="$LIBS"
  3563. LIBS="-lterminfo  $LIBS"
  3564. cat > conftest.$ac_ext <<EOF
  3565. #line 3566 "configure"
  3566. #include "confdefs.h"
  3567. /* Override any gcc2 internal prototype to avoid an error.  */
  3568. /* We use char because int might match the return type of a gcc2
  3569.     builtin and then its argument prototype would still apply.  */
  3570. char tgetent();
  3571.  
  3572. int main() { return 0; }
  3573. int t() {
  3574. tgetent()
  3575. ; return 0; }
  3576. EOF
  3577. if { (eval echo configure:3578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3578.   rm -rf conftest*
  3579.   eval "ac_cv_lib_$ac_lib_var=yes"
  3580. else
  3581.   rm -rf conftest*
  3582.   eval "ac_cv_lib_$ac_lib_var=no"
  3583. fi
  3584. rm -f conftest*
  3585. LIBS="$ac_save_LIBS"
  3586.  
  3587. fi
  3588. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3589.   echo "$ac_t""yes" 1>&6
  3590.   cat >> confdefs.h <<\EOF
  3591. #define HAVE_LIBTERMINFO 1
  3592. EOF
  3593.  
  3594.                          LIBS="$LIBS -lterminfo"
  3595.                          TERMLIB_FOUND="yes"
  3596. else
  3597.   echo "$ac_t""no" 1>&6
  3598. TERMLIB_FOUND="no"
  3599.             
  3600. fi
  3601.  
  3602.         
  3603. fi
  3604.  
  3605.         
  3606. fi
  3607.  
  3608.     
  3609. fi
  3610.  
  3611.     
  3612. fi
  3613.  
  3614.  
  3615.  
  3616. fi
  3617.  
  3618. fi
  3619.  
  3620. if test "$TERMLIB_FOUND" = "no"; then
  3621.     { echo "configure: error: no library for handling terminal capabilities" 1>&2; exit 1; }
  3622. fi
  3623.  
  3624.  
  3625.  
  3626. # Extract the first word of "makeinfo", so it can be a program name with args.
  3627. set dummy makeinfo; ac_word=$2
  3628. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3629. if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
  3630.   echo $ac_n "(cached) $ac_c" 1>&6
  3631. else
  3632.   if test -n "$MAKEINFO"; then
  3633.   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
  3634. else
  3635.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3636.   for ac_dir in $PATH; do
  3637.     test -z "$ac_dir" && ac_dir=.
  3638.     if test -f $ac_dir/$ac_word; then
  3639.       ac_cv_prog_MAKEINFO="makeinfo"
  3640.       break
  3641.     fi
  3642.   done
  3643.   IFS="$ac_save_ifs"
  3644.   test -z "$ac_cv_prog_MAKEINFO" && ac_cv_prog_MAKEINFO="false"
  3645. fi
  3646. fi
  3647. MAKEINFO="$ac_cv_prog_MAKEINFO"
  3648. if test -n "$MAKEINFO"; then
  3649.   echo "$ac_t""$MAKEINFO" 1>&6
  3650. else
  3651.   echo "$ac_t""no" 1>&6
  3652. fi
  3653.  
  3654. if test "$MAKEINFO" = "false"; then
  3655.     echo "configure: warning: ***** makeinfo utility not found *****" 1>&2
  3656. fi
  3657.  
  3658.  
  3659.  
  3660. # Extract the first word of "texi2dvi", so it can be a program name with args.
  3661. set dummy texi2dvi; ac_word=$2
  3662. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3663. if eval "test \"`echo '$''{'ac_cv_prog_TEXI2DVI'+set}'`\" = set"; then
  3664.   echo $ac_n "(cached) $ac_c" 1>&6
  3665. else
  3666.   if test -n "$TEXI2DVI"; then
  3667.   ac_cv_prog_TEXI2DVI="$TEXI2DVI" # Let the user override the test.
  3668. else
  3669.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3670.   for ac_dir in $PATH; do
  3671.     test -z "$ac_dir" && ac_dir=.
  3672.     if test -f $ac_dir/$ac_word; then
  3673.       ac_cv_prog_TEXI2DVI="texi2dvi"
  3674.       break
  3675.     fi
  3676.   done
  3677.   IFS="$ac_save_ifs"
  3678.   test -z "$ac_cv_prog_TEXI2DVI" && ac_cv_prog_TEXI2DVI="false"
  3679. fi
  3680. fi
  3681. TEXI2DVI="$ac_cv_prog_TEXI2DVI"
  3682. if test -n "$TEXI2DVI"; then
  3683.   echo "$ac_t""$TEXI2DVI" 1>&6
  3684. else
  3685.   echo "$ac_t""no" 1>&6
  3686. fi
  3687.  
  3688. if test "$TEXI2DVI" = "false"; then
  3689.     echo "configure: warning: ***** texi2dvi utility not found *****" 1>&2
  3690. fi
  3691.  
  3692.  
  3693.  
  3694. if test "$TERMINFO" = "no"; then
  3695.     if test "$host_os" = "solaris2.3" -o "$host_os" = "solaris2.4"; then
  3696.     echo $ac_n "checking for -lucb""... $ac_c" 1>&6
  3697. ac_lib_var=`echo ucb'_'tgetent | tr './+\055' '__p_'`
  3698. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3699.   echo $ac_n "(cached) $ac_c" 1>&6
  3700. else
  3701.   ac_save_LIBS="$LIBS"
  3702. LIBS="-lucb $LIBS $LIBS"
  3703. cat > conftest.$ac_ext <<EOF
  3704. #line 3705 "configure"
  3705. #include "confdefs.h"
  3706. /* Override any gcc2 internal prototype to avoid an error.  */
  3707. /* We use char because int might match the return type of a gcc2
  3708.     builtin and then its argument prototype would still apply.  */
  3709. char tgetent();
  3710.  
  3711. int main() { return 0; }
  3712. int t() {
  3713. tgetent()
  3714. ; return 0; }
  3715. EOF
  3716. if { (eval echo configure:3717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3717.   rm -rf conftest*
  3718.   eval "ac_cv_lib_$ac_lib_var=yes"
  3719. else
  3720.   rm -rf conftest*
  3721.   eval "ac_cv_lib_$ac_lib_var=no"
  3722. fi
  3723. rm -f conftest*
  3724. LIBS="$ac_save_LIBS"
  3725.  
  3726. fi
  3727. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3728.   echo "$ac_t""yes" 1>&6
  3729.     ac_tr_lib=HAVE_LIB`echo ucb | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3730.   cat >> confdefs.h <<EOF
  3731. #define $ac_tr_lib 1
  3732. EOF
  3733.  
  3734.   LIBS="-lucb $LIBS"
  3735.  
  3736. else
  3737.   echo "$ac_t""no" 1>&6
  3738. fi
  3739.  
  3740.     fi
  3741. fi
  3742.  
  3743.  
  3744.  
  3745.  
  3746.  
  3747. trap '' 1 2 15
  3748. cat > confcache <<\EOF
  3749. # This file is a shell script that caches the results of configure
  3750. # tests run on this system so they can be shared between configure
  3751. # scripts and configure runs.  It is not useful on other systems.
  3752. # If it contains results you don't want to keep, you may remove or edit it.
  3753. #
  3754. # By default, configure uses ./config.cache as the cache file,
  3755. # creating it if it does not exist already.  You can give configure
  3756. # the --cache-file=FILE option to use a different cache file; that is
  3757. # what configure does when it calls configure scripts in
  3758. # subdirectories, so they share the cache.
  3759. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  3760. # config.status only pays attention to the cache file if you give it the
  3761. # --recheck option to rerun configure.
  3762. #
  3763. EOF
  3764. # Ultrix sh set writes to stderr and can't be redirected directly,
  3765. # and sets the high bit in the cache file unless we assign to the vars.
  3766. (set) 2>&1 |
  3767.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  3768.   >> confcache
  3769. if cmp -s $cache_file confcache; then
  3770.   :
  3771. else
  3772.   if test -w $cache_file; then
  3773.     echo "updating cache $cache_file"
  3774.     cat confcache > $cache_file
  3775.   else
  3776.     echo "not updating unwritable cache $cache_file"
  3777.   fi
  3778. fi
  3779. rm -f confcache
  3780.  
  3781. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  3782.  
  3783. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  3784. # Let make expand exec_prefix.
  3785. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  3786.  
  3787. # Any assignment to VPATH causes Sun make to only execute
  3788. # the first set of double-colon rules, so remove it if not needed.
  3789. # If there is a colon in the path, we need to keep it.
  3790. if test "x$srcdir" = x.; then
  3791.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  3792. fi
  3793.  
  3794. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  3795.  
  3796. DEFS=-DHAVE_CONFIG_H
  3797.  
  3798. # Without the "./", some shells look in PATH for config.status.
  3799. : ${CONFIG_STATUS=./config.status}
  3800.  
  3801. echo creating $CONFIG_STATUS
  3802. rm -f $CONFIG_STATUS
  3803. cat > $CONFIG_STATUS <<EOF
  3804. #! /bin/sh
  3805. # Generated automatically by configure.
  3806. # Run this file to recreate the current configuration.
  3807. # This directory was configured as follows,
  3808. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  3809. #
  3810. # $0 $ac_configure_args
  3811. #
  3812. # Compiler output produced by configure, useful for debugging
  3813. # configure, is in ./config.log if it exists.
  3814.  
  3815. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  3816. for ac_option
  3817. do
  3818.   case "\$ac_option" in
  3819.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  3820.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  3821.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  3822.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  3823.     echo "$CONFIG_STATUS generated by autoconf version 2.10"
  3824.     exit 0 ;;
  3825.   -help | --help | --hel | --he | --h)
  3826.     echo "\$ac_cs_usage"; exit 0 ;;
  3827.   *) echo "\$ac_cs_usage"; exit 1 ;;
  3828.   esac
  3829. done
  3830.  
  3831. ac_given_srcdir=$srcdir
  3832. ac_given_INSTALL="$INSTALL"
  3833.  
  3834. trap 'rm -fr `echo "Makefile src/Makefile info/Makefile man/Makefile term/Makefile
  3835.       version.h config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  3836. EOF
  3837. cat >> $CONFIG_STATUS <<EOF
  3838.  
  3839. # Protect against being on the right side of a sed subst in config.status.
  3840. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  3841.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  3842. $ac_vpsub
  3843. $extrasub
  3844. s%@CFLAGS@%$CFLAGS%g
  3845. s%@CPPFLAGS@%$CPPFLAGS%g
  3846. s%@CXXFLAGS@%$CXXFLAGS%g
  3847. s%@DEFS@%$DEFS%g
  3848. s%@LDFLAGS@%$LDFLAGS%g
  3849. s%@LIBS@%$LIBS%g
  3850. s%@exec_prefix@%$exec_prefix%g
  3851. s%@prefix@%$prefix%g
  3852. s%@program_transform_name@%$program_transform_name%g
  3853. s%@bindir@%$bindir%g
  3854. s%@sbindir@%$sbindir%g
  3855. s%@libexecdir@%$libexecdir%g
  3856. s%@datadir@%$datadir%g
  3857. s%@sysconfdir@%$sysconfdir%g
  3858. s%@sharedstatedir@%$sharedstatedir%g
  3859. s%@localstatedir@%$localstatedir%g
  3860. s%@libdir@%$libdir%g
  3861. s%@includedir@%$includedir%g
  3862. s%@oldincludedir@%$oldincludedir%g
  3863. s%@infodir@%$infodir%g
  3864. s%@mandir@%$mandir%g
  3865. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  3866. s%@INSTALL_DATA@%$INSTALL_DATA%g
  3867. s%@host@%$host%g
  3868. s%@host_alias@%$host_alias%g
  3869. s%@host_cpu@%$host_cpu%g
  3870. s%@host_vendor@%$host_vendor%g
  3871. s%@host_os@%$host_os%g
  3872. s%@CC@%$CC%g
  3873. s%@CPP@%$CPP%g
  3874. s%@MAKEINFO@%$MAKEINFO%g
  3875. s%@TEXI2DVI@%$TEXI2DVI%g
  3876. s%@PRODUCT@%$PRODUCT%g
  3877. s%@VERSION@%$VERSION%g
  3878. s%@HOST@%$HOST%g
  3879. s%@INSTALL@%$INSTALL%g
  3880. s%@GIT_OBJS@%$GIT_OBJS%g
  3881. s%@GITPS_OBJS@%$GITPS_OBJS%g
  3882. s%@GITVIEW_OBJS@%$GITVIEW_OBJS%g
  3883.  
  3884. CEOF
  3885. EOF
  3886. cat >> $CONFIG_STATUS <<EOF
  3887.  
  3888. CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile info/Makefile man/Makefile term/Makefile
  3889.       version.h"}
  3890. EOF
  3891. cat >> $CONFIG_STATUS <<\EOF
  3892. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  3893.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  3894.   case "$ac_file" in
  3895.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  3896.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  3897.   *) ac_file_in="${ac_file}.in" ;;
  3898.   esac
  3899.  
  3900.   # Adjust relative srcdir, etc. for subdirectories.
  3901.  
  3902.   # Remove last slash and all that follows it.  Not all systems have dirname.
  3903.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  3904.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  3905.     # The file is in a subdirectory.
  3906.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  3907.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  3908.     # A "../" for each directory in $ac_dir_suffix.
  3909.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  3910.   else
  3911.     ac_dir_suffix= ac_dots=
  3912.   fi
  3913.  
  3914.   case "$ac_given_srcdir" in
  3915.   .)  srcdir=.
  3916.       if test -z "$ac_dots"; then top_srcdir=.
  3917.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  3918.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  3919.   *) # Relative path.
  3920.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  3921.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  3922.   esac
  3923.  
  3924.   case "$ac_given_INSTALL" in
  3925.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  3926.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  3927.   esac
  3928.   echo creating "$ac_file"
  3929.   rm -f "$ac_file"
  3930.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  3931.   case "$ac_file" in
  3932.   *Makefile*) ac_comsub="1i\\
  3933. # $configure_input" ;;
  3934.   *) ac_comsub= ;;
  3935.   esac
  3936.   sed -e "$ac_comsub
  3937. s%@configure_input@%$configure_input%g
  3938. s%@srcdir@%$srcdir%g
  3939. s%@top_srcdir@%$top_srcdir%g
  3940. s%@INSTALL@%$INSTALL%g
  3941. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  3942. fi; done
  3943. rm -f conftest.subs
  3944.  
  3945. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  3946. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  3947. #
  3948. # ac_d sets the value in "#define NAME VALUE" lines.
  3949. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  3950. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  3951. ac_dC='\3'
  3952. ac_dD='%g'
  3953. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  3954. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3955. ac_uB='\([     ]\)%\1#\2define\3'
  3956. ac_uC=' '
  3957. ac_uD='\4%g'
  3958. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  3959. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3960. ac_eB='$%\1#\2define\3'
  3961. ac_eC=' '
  3962. ac_eD='%g'
  3963.  
  3964. CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
  3965. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  3966.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  3967.   case "$ac_file" in
  3968.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  3969.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  3970.   *) ac_file_in="${ac_file}.in" ;;
  3971.   esac
  3972.  
  3973.   echo creating $ac_file
  3974.  
  3975.   rm -f conftest.frag conftest.in conftest.out
  3976.   cp $ac_given_srcdir/$ac_file_in conftest.in
  3977.  
  3978. EOF
  3979.  
  3980. # Transform confdefs.h into a sed script conftest.vals that substitutes
  3981. # the proper values into config.h.in to produce config.h.  And first:
  3982. # Protect against being on the right side of a sed subst in config.status.
  3983. # Protect against being in an unquoted here document in config.status.
  3984. rm -f conftest.vals
  3985. cat > conftest.hdr <<\EOF
  3986. s/[\\&%]/\\&/g
  3987. s%[\\$`]%\\&%g
  3988. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  3989. s%ac_d%ac_u%gp
  3990. s%ac_u%ac_e%gp
  3991. EOF
  3992. sed -n -f conftest.hdr confdefs.h > conftest.vals
  3993. rm -f conftest.hdr
  3994.  
  3995. # This sed command replaces #undef with comments.  This is necessary, for
  3996. # example, in the case of _POSIX_SOURCE, which is predefined and required
  3997. # on some systems where configure will not decide to define it.
  3998. cat >> conftest.vals <<\EOF
  3999. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  4000. EOF
  4001.  
  4002. # Break up conftest.vals because some shells have a limit on
  4003. # the size of here documents, and old seds have small limits too.
  4004. # Maximum number of lines to put in a single here document.
  4005. ac_max_here_lines=12
  4006.  
  4007. rm -f conftest.tail
  4008. while :
  4009. do
  4010.   ac_lines=`grep -c . conftest.vals`
  4011.   # grep -c gives empty output for an empty file on some AIX systems.
  4012.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  4013.   # Write a limited-size here document to conftest.frag.
  4014.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  4015.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  4016.   echo 'CEOF
  4017.   sed -f conftest.frag conftest.in > conftest.out
  4018.   rm -f conftest.in
  4019.   mv conftest.out conftest.in
  4020. ' >> $CONFIG_STATUS
  4021.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  4022.   rm -f conftest.vals
  4023.   mv conftest.tail conftest.vals
  4024. done
  4025. rm -f conftest.vals
  4026.  
  4027. cat >> $CONFIG_STATUS <<\EOF
  4028.   rm -f conftest.frag conftest.h
  4029.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  4030.   cat conftest.in >> conftest.h
  4031.   rm -f conftest.in
  4032.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  4033.     echo "$ac_file is unchanged"
  4034.     rm -f conftest.h
  4035.   else
  4036.     # Remove last slash and all that follows it.  Not all systems have dirname.
  4037.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  4038.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  4039.       # The file is in a subdirectory.
  4040.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  4041.     fi
  4042.     rm -f $ac_file
  4043.     mv conftest.h $ac_file
  4044.   fi
  4045. fi; done
  4046.  
  4047.  
  4048.  
  4049. exit 0
  4050. EOF
  4051. chmod +x $CONFIG_STATUS
  4052. rm -fr confdefs* $ac_clean_files
  4053. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  4054.  
  4055.